Cleanup for coding style

Add strict mode to check_style_guide script
This commit is contained in:
Alexander Bock
2017-11-08 10:35:39 -06:00
parent d94408224c
commit b50b52d351
387 changed files with 1907 additions and 2132 deletions

View File

@@ -37,7 +37,7 @@ std::unique_ptr<Decoder> Decoder::createFromDictionary(
ghoul::TemplateFactory<Decoder>* factory = FactoryManager::ref().factory<Decoder>();
std::unique_ptr<Decoder> result = factory->create(type, dictionary);
if (result == nullptr) {
if (!result) {
throw ghoul::RuntimeError(
"Failed creating payload object of type '" + type + '"',
"Decoder"
@@ -47,5 +47,5 @@ std::unique_ptr<Decoder> Decoder::createFromDictionary(
}
Decoder::~Decoder() {}
} // namespace openspace