[Orxonox-commit 5762] r10422 - in code/branches/core7/src/libraries: core/class util
landauf at orxonox.net
landauf at orxonox.net
Sun May 3 15:49:13 CEST 2015
Author: landauf
Date: 2015-05-03 15:49:13 +0200 (Sun, 03 May 2015)
New Revision: 10422
Modified:
code/branches/core7/src/libraries/core/class/Identifier.h
code/branches/core7/src/libraries/util/SharedPtr.h
Log:
details
Modified: code/branches/core7/src/libraries/core/class/Identifier.h
===================================================================
--- code/branches/core7/src/libraries/core/class/Identifier.h 2015-05-03 13:48:10 UTC (rev 10421)
+++ code/branches/core7/src/libraries/core/class/Identifier.h 2015-05-03 13:49:13 UTC (rev 10422)
@@ -314,7 +314,7 @@
if (ClassIdentifier<T>::classIdentifier_s == NULL)
ClassIdentifier<T>::classIdentifier_s = (ClassIdentifier<T>*) IdentifierManager::getInstance().getIdentifierByTypeInfo(typeid(T));
- OrxVerify(ClassIdentifier<T>::classIdentifier_s != NULL, "Assertion failed in ClassIdentifier of type " << typeid(T).name());
+ OrxVerify(ClassIdentifier<T>::classIdentifier_s != NULL, "Did you forget to register the class of type " << typeid(T).name() << "?");
return ClassIdentifier<T>::classIdentifier_s;
}
Modified: code/branches/core7/src/libraries/util/SharedPtr.h
===================================================================
--- code/branches/core7/src/libraries/util/SharedPtr.h 2015-05-03 13:48:10 UTC (rev 10421)
+++ code/branches/core7/src/libraries/util/SharedPtr.h 2015-05-03 13:49:13 UTC (rev 10422)
@@ -137,7 +137,7 @@
OtherClass* other2 = new OtherClass(object); // "
OtherClass* other3 = new OtherClass(object); // "
- } // The SmartPtr "object" is destroyed at the end of the scope,
+ } // The SharedPtr "object" is destroyed at the end of the scope,
// but the three instances of OtherClass keep the object alive
// until they are all destroyed.
@endcode
More information about the Orxonox-commit
mailing list