Misc coding style cleanups

This commit is contained in:
Alexander Bock
2018-11-06 12:02:56 -05:00
parent d1fa145e0a
commit 7a3a8a5cf6
33 changed files with 399 additions and 311 deletions
@@ -30,6 +30,7 @@
#include <openspace/query/query.h>
#include <openspace/util/timemanager.h>
#include <openspace/util/time.h>
#include <ghoul/fmt.h>
#include <ghoul/logging/logmanager.h>
namespace {
@@ -97,7 +98,9 @@ void SetPropertyTopic::handleJson(const nlohmann::json& json) {
std::string literal = luaLiteralFromJson(value);
global::scriptEngine.queueScript(
"openspace.setPropertyValueSingle(\"" + propertyKey + "\", " + literal + ")",
fmt::format(
"openspace.setPropertyValueSingle(\"{}\", {})", propertyKey, literal
),
scripting::ScriptEngine::RemoteScripting::Yes
);
}