[Orxonox-commit 5704] r10364 - code/branches/core7/src/libraries/core/class
landauf at orxonox.net
landauf at orxonox.net
Tue Apr 14 22:11:36 CEST 2015
Author: landauf
Date: 2015-04-14 22:11:35 +0200 (Tue, 14 Apr 2015)
New Revision: 10364
Modified:
code/branches/core7/src/libraries/core/class/IdentifierManager.cc
Log:
only check class hierarchy in dev mode
Modified: code/branches/core7/src/libraries/core/class/IdentifierManager.cc
===================================================================
--- code/branches/core7/src/libraries/core/class/IdentifierManager.cc 2015-04-13 21:15:04 UTC (rev 10363)
+++ code/branches/core7/src/libraries/core/class/IdentifierManager.cc 2015-04-14 20:11:35 UTC (rev 10364)
@@ -36,7 +36,7 @@
#include <ostream>
#include "util/StringUtils.h"
-#include "core/CoreIncludes.h"
+#include "core/Core.h"
#include "core/config/ConfigValueContainer.h"
#include "core/XMLPort.h"
#include "core/object/ClassFactory.h"
@@ -146,7 +146,9 @@
orxout(internal_error) << "Identifier was registered late and is not initialized: " << it->second->getName() << " / " << it->second->getTypeidName() << endl;
}
- this->verifyClassHierarchy();
+ // only check class hierarchy in dev mode because it's an expensive operation and it requires a developer to fix detected problems anyway.
+ if (Core::getInstance().inDevMode())
+ this->verifyClassHierarchy();
this->stopCreatingHierarchy();
orxout(internal_status) << "Finished class-hierarchy creation" << endl;
More information about the Orxonox-commit
mailing list