init variable 'base' in initializer list

This commit is contained in:
escherstair
2019-09-19 08:01:47 +02:00
committed by GitHub
parent 4b9cc1a484
commit 18bbfdac1a

View File

@@ -79,10 +79,7 @@ using namespace std;
ObjFileImporter::ObjFileImporter()
: m_Buffer()
, m_pRootObject( nullptr )
, m_strAbsPath( "" ) {
DefaultIOSystem io;
m_strAbsPath = io.getOsSeparator();
}
, m_strAbsPath( std::string(1, DefaultIOSystem.getOsSeparator()) ) {}
// ------------------------------------------------------------------------------------------------
// Destructor.