@@ -104,7 +104,7 @@ public:
|
|||||||
|
|
||||||
StringOutputStream(){
|
StringOutputStream(){
|
||||||
}
|
}
|
||||||
StringOutputStream( std::size_t capacity ) : m_string( capacity ){
|
explicit StringOutputStream( std::size_t capacity ) : m_string( capacity ){
|
||||||
}
|
}
|
||||||
std::size_t write( const char* buffer, std::size_t length ){
|
std::size_t write( const char* buffer, std::size_t length ){
|
||||||
m_string.push_range( buffer, buffer + length );
|
m_string.push_range( buffer, buffer + length );
|
||||||
|
|||||||
@@ -255,7 +255,7 @@ void RunBSP( size_t buildIdx ){
|
|||||||
#if defined ( POSIX )
|
#if defined ( POSIX )
|
||||||
batchFile << "#!/bin/sh \n\n";
|
batchFile << "#!/bin/sh \n\n";
|
||||||
#endif
|
#endif
|
||||||
BatchCommandListener listener( batchFile, g_WatchBSP0_DumpLog? junkpath : 0 );
|
BatchCommandListener listener( batchFile, g_WatchBSP0_DumpLog? junkpath.c_str() : nullptr );
|
||||||
for( const auto& command : commands )
|
for( const auto& command : commands )
|
||||||
listener.execute( command.c_str() );
|
listener.execute( command.c_str() );
|
||||||
written = true;
|
written = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user