Whitespace and minor code cleanup

This is by no means comprehensive, but is quite a bit better already.

Change-Id: Ibc8654a5dfb0eec39cbd0b64bdb52bb4fbfe2f7e
This commit is contained in:
Matt Mower
2014-06-04 09:13:37 -05:00
committed by Ethan Yonker
parent 87c7bac9c9
commit fb1c4ffaaf
66 changed files with 205 additions and 2157 deletions
+2 -2
View File
@@ -999,7 +999,7 @@ int DataManager::GetMagicValue(const string varName, string& value)
int tw_military_time;
now = time(0);
current = localtime(&now);
GetValue(TW_MILITARY_TIME, tw_military_time);
GetValue(TW_MILITARY_TIME, tw_military_time);
if (current->tm_hour >= 12)
{
if (tw_military_time == 1)
@@ -1009,7 +1009,7 @@ int DataManager::GetMagicValue(const string varName, string& value)
}
else
{
if (tw_military_time == 1)
if (tw_military_time == 1)
sprintf(tmp, "%d:%02d", current->tm_hour, current->tm_min);
else
sprintf(tmp, "%d:%02d AM", current->tm_hour == 0 ? 12 : current->tm_hour, current->tm_min);