Whitespace and minor code cleanup
This is by no means comprehensive, but is quite a bit better already.
Change-Id: Ibc8654a5dfb0eec39cbd0b64bdb52bb4fbfe2f7e
diff --git a/gui/slidervalue.cpp b/gui/slidervalue.cpp
index 972d1f7..c3ef69e 100644
--- a/gui/slidervalue.cpp
+++ b/gui/slidervalue.cpp
@@ -126,8 +126,10 @@
string parsevalue = gui_parse_text(attr->value());
int def = atoi(parsevalue.c_str());
- if (def < mMin) def = mMin;
- else if (def > mMax) def = mMax;
+ if (def < mMin)
+ def = mMin;
+ else if (def > mMax)
+ def = mMax;
DataManager::SetValue(mVariable, def);
}
@@ -324,8 +326,10 @@
int GUISliderValue::Update(void)
{
- if (!isConditionTrue()) return mRendered ? 2 : 0;
- if (!mRendered) return 2;
+ if (!isConditionTrue())
+ return mRendered ? 2 : 0;
+ if (!mRendered)
+ return 2;
if(mLabel)
return mLabel->Update();
@@ -345,7 +349,8 @@
int GUISliderValue::NotifyTouch(TOUCH_STATE state, int x, int y)
{
- if (!isConditionTrue()) return -1;
+ if (!isConditionTrue())
+ return -1;
static bool dragging = false;
switch (state)