diff --git a/src/gdlib/gmsstrm.cpp b/src/gdlib/gmsstrm.cpp index bd63053..01fa657 100644 --- a/src/gdlib/gmsstrm.cpp +++ b/src/gdlib/gmsstrm.cpp @@ -117,7 +117,7 @@ void CompressTextFile( const std::string &fn, const std::string &fo, const std:: NrRead = Fin.Read( Buffer.data(), (int) Buffer.size() ); if( !NrRead ) break; Fout.Write( Buffer.data(), NrRead ); - } while( NrRead >= static_cast( Buffer.size() ) ); + } while( NrRead >= static_cast( Buffer.size() ) ); } void UnCompressTextFile( const std::string &fn, const std::string &fo, const std::string &PassWord, int &ErrNr, std::string &ErrMsg ) diff --git a/src/rtl/stdthread.cpp b/src/rtl/stdthread.cpp index ff4a509..b2d99da 100644 --- a/src/rtl/stdthread.cpp +++ b/src/rtl/stdthread.cpp @@ -118,7 +118,6 @@ TStdThread::~TStdThread() { if( joinable() ) detach(); - std::thread::~thread(); } catch( const std::exception & ) { diff --git a/src/rtl/stdthread.h b/src/rtl/stdthread.h index da794f2..439c56f 100644 --- a/src/rtl/stdthread.h +++ b/src/rtl/stdthread.h @@ -56,7 +56,7 @@ class TStdThread : public std::thread { public: explicit TStdThread(const std::function &execute); - virtual ~TStdThread(); + ~TStdThread(); [[nodiscard]] uint64_t getThreadHash() const; };