fix nonmonitored builds broken in 9a13f9ed55

closes #166
This commit is contained in:
Garux 2024-02-08 13:02:16 +06:00
parent f6fd436d69
commit a75fb6abdd
2 changed files with 2 additions and 2 deletions

View File

@ -104,7 +104,7 @@ public:
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 ){
m_string.push_range( buffer, buffer + length );

View File

@ -255,7 +255,7 @@ void RunBSP( size_t buildIdx ){
#if defined ( POSIX )
batchFile << "#!/bin/sh \n\n";
#endif
BatchCommandListener listener( batchFile, g_WatchBSP0_DumpLog? junkpath : 0 );
BatchCommandListener listener( batchFile, g_WatchBSP0_DumpLog? junkpath.c_str() : nullptr );
for( const auto& command : commands )
listener.execute( command.c_str() );
written = true;