Log with a loop, auto, and WHITE SPACE.
This commit is contained in:
+2
-2
@@ -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 );
|
||||||
|
|||||||
Reference in New Issue
Block a user