Apply getValueSafe/getValue change of Dictionary to the codebase

This commit is contained in:
Alexander Bock
2014-09-27 19:23:24 +02:00
parent cfcf0247be
commit f3fb8cd95e
11 changed files with 32 additions and 32 deletions

View File

@@ -43,7 +43,7 @@ Renderable* Renderable::createFromDictionary(const ghoul::Dictionary& dictionary
assert(success);
std::string renderableType;
success = dictionary.getValueSafe(constants::renderable::keyType, renderableType);
success = dictionary.getValue(constants::renderable::keyType, renderableType);
if (!success) {
LERROR("Renderable '" << name << "' did not have key '"
<< constants::renderable::keyType << "'");
@@ -67,7 +67,7 @@ Renderable::Renderable(const ghoul::Dictionary& dictionary)
setName("renderable");
// get path if available
const bool success = dictionary.getValueSafe(constants::scenegraph::keyPathModule, _relativePath);
const bool success = dictionary.getValue(constants::scenegraph::keyPathModule, _relativePath);
if (success)
_relativePath += ghoul::filesystem::FileSystem::PathSeparator;