From a75fb6abdd9dd71538c592489f62e8c155478502 Mon Sep 17 00:00:00 2001 From: Garux Date: Thu, 8 Feb 2024 13:02:16 +0600 Subject: [PATCH] fix nonmonitored builds broken in 9a13f9ed552ec7a7f056557ce922746df22b970f closes #166 --- libs/stream/stringstream.h | 2 +- radiant/qe3.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/stream/stringstream.h b/libs/stream/stringstream.h index 22a6a55b..46757fe3 100644 --- a/libs/stream/stringstream.h +++ b/libs/stream/stringstream.h @@ -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 ); diff --git a/radiant/qe3.cpp b/radiant/qe3.cpp index 7c129769..27f6a0af 100644 --- a/radiant/qe3.cpp +++ b/radiant/qe3.cpp @@ -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;