Log with a loop, auto, and WHITE SPACE.

This commit is contained in:
Jason Felds
2013-04-27 15:21:12 -04:00
parent b6f2bf317c
commit 5dfc1bf279
+2 -2
View File
@@ -373,8 +373,8 @@ static int g_AdditionalLogSize = 0;
void RageLog::UpdateMappedLog() void RageLog::UpdateMappedLog()
{ {
RString str; RString str;
FOREACHM_CONST( RString, RString, LogMaps, i ) for (auto const &i : LogMaps)
str += ssprintf( "%s" NEWLINE, i->second.c_str() ); str += ssprintf( "%s" NEWLINE, i.second.c_str() );
g_AdditionalLogSize = min( sizeof(g_AdditionalLogStr), str.size()+1 ); g_AdditionalLogSize = min( sizeof(g_AdditionalLogStr), str.size()+1 );
memcpy( g_AdditionalLogStr, str.c_str(), g_AdditionalLogSize ); memcpy( g_AdditionalLogStr, str.c_str(), g_AdditionalLogSize );