You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1c19d71
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: core/src/error/instance.h
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -34,5 +34,5 @@ class AssignToReadOnlyMember : public Error {
34
34
35
35
classInstanceCastError : publicError {
36
36
public:
37
-
inlineInstanceCastError(std::string sourceClass, std::string targetClass) : Error("InstanceCastError", "Attempt to cast object of type " + sourceClass + " to incompatible type " + targetClass) {}
37
+
inlineInstanceCastError(std::string sourceClass, std::string tarGetType) : Error("InstanceCastError", "Attempt to cast object of type " + sourceClass + " to incompatible type " + tarGetType) {}
if (!newParent || newParent->GetClass() != &DataModel::TYPE) {
12
-
Logger::fatalErrorf("Service %s was parented to object of type %s", GetClass()->className.c_str(), newParent ? newParent->GetClass()->className.c_str() : "NULL");
11
+
if (!newParent || newParent->GetType() != &DataModel::TYPE) {
12
+
Logger::fatalErrorf("Service %s was parented to object of type %s", GetType()->className.c_str(), newParent ? newParent->GetType()->className.c_str() : "NULL");
Copy file name to clipboardExpand all lines: docs/autogen.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,7 @@ It comes with various parameters/flags:
62
62
-`service` - Flag, the instance is a service. Additionally, enable the `not_creatable` flag as well (Adds both `INSTANCE_NOTCREATABLE` and `INSTANCE_SERVICE` flags)
63
63
-`explorer_icon` - Option, string to pass into editor for the icon of the instance in the explorer
64
64
65
-
A file will be generated in `build/generated/<header>.cpp` with the `TYPE` automatically filled in, as well as an implementation for `GetClass()`
65
+
A file will be generated in `build/generated/<header>.cpp` with the `TYPE` automatically filled in, as well as an implementation for `GetType()`
66
66
67
67
Note that it is also necessary to add `AUTOGEN_PREAMBLE` to the top of your class definition, to make sure that various functions for properties, etc. are
68
68
declared such that they can later be defined in the generated source file.
0 commit comments