return res;
}
-std::string parseCommand( RecordHeader& head, const std::string input, std::shared_ptr<std::ostream> log ) {
+std::string parseCommand( RecordHeader& head, const std::string& input, std::shared_ptr<std::ostream> log ) {
if( log ) {
( *log.get() ) << "FINE: RECORD input: " << input << std::endl;
}
bool error = false;
std::string str( std::max( dlen, RECORD_HEADER_SIZE ), 0 );
- str.append( 0, dlen );
+ str.append( dlen, '\0' );
for( int i = 0; i < dlen; i++ ) {
int32_t digit;