From b2f4f7fde6ecfb048785d2b2b283f878fee3e5ec Mon Sep 17 00:00:00 2001 From: casey langen Date: Fri, 22 Jun 2018 23:29:55 -0700 Subject: [PATCH] Cleaned up extraneous whitespace. --- src/musikcube/app/overlay/PluginOverlay.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/musikcube/app/overlay/PluginOverlay.cpp b/src/musikcube/app/overlay/PluginOverlay.cpp index d8d4fdb11..364fea6a2 100644 --- a/src/musikcube/app/overlay/PluginOverlay.cpp +++ b/src/musikcube/app/overlay/PluginOverlay.cpp @@ -108,10 +108,10 @@ std::string numberInputTitle( std::string keyName, T minimum, T maximum, - std::function formatter) + std::function formatter) { if (bounded(minimum, maximum)) { - return keyName + " (" + formatter(minimum) + return keyName + " (" + formatter(minimum) + " - " + formatter(maximum) + ")"; } return keyName; @@ -122,7 +122,7 @@ static std::string stringValueFor( PrefsPtr prefs, const T* entry, ISchema::Type type, - const std::string& name) + const std::string& name) { switch (type) { case ISchema::Type::Bool: @@ -235,8 +235,8 @@ class SchemaAdapter: public ScrollAdapterBase { } virtual bool IsValid(const std::string& input) const override { - try { - int result = std::stoi(input); + try { + int result = std::stoi(input); if (bounded(minimum, maximum) && (result < minimum || result > maximum)) { return false; } @@ -269,7 +269,7 @@ class SchemaAdapter: public ScrollAdapterBase { { auto stringAdapter = std::make_shared(items); std::shared_ptr dialog(new ListOverlay()); - + size_t width = u8cols(title) + 4; /* extra padding for border and spacing */ size_t index = 0; @@ -299,7 +299,7 @@ class SchemaAdapter: public ScrollAdapterBase { void ShowBoolOverlay(const ISchema::BoolEntry* entry) { auto name = entry->entry.name; std::vector items = { "true", "false" }; - ShowListOverlay(name, items, stringValueFor(prefs, entry), + ShowListOverlay(name, items, stringValueFor(prefs, entry), [this, name](std::string value) { this->prefs->SetBool(name, value == "true"); this->changed = true; @@ -376,7 +376,7 @@ class SchemaAdapter: public ScrollAdapterBase { items.push_back(entry->values[i]); } - ShowListOverlay(name, items, stringValueFor(prefs, entry), + ShowListOverlay(name, items, stringValueFor(prefs, entry), [this, name](std::string value) { this->prefs->SetString(name, value.c_str()); this->changed = true;