Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5db7d51

Browse files
committed
update structures; fix some minor compile warnings
1 parent 321d948 commit 5db7d51

3 files changed

Lines changed: 3 additions & 7 deletions

File tree

library/modules/Persistence.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ struct Persistence::LegacyData
8181
}
8282
json["i"] = std::move(ints);
8383

84-
return std::move(json);
84+
return json;
8585
}
8686
};
8787

library/xml

plugins/cxxrandom.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -160,14 +160,10 @@ class NumberSequence
160160
}
161161
void Print()
162162
{
163-
char buffer1[256] = {0};
164-
char buffer2[256] = {0};
165163
for( auto v : m_numbers )
166164
{
167-
sprintf( buffer2, "%s%" PRId64, buffer1, v );
168-
sprintf( buffer1, "%s ", buffer2 );
165+
cout->print( "%" PRId64 " ", v );
169166
}
170-
cout->print( "%s", buffer1 );
171167
}
172168
};
173169

0 commit comments

Comments
 (0)