init variable in initializer list

This commit is contained in:
escherstair
2019-09-18 08:18:52 +02:00
committed by GitHub
parent 6d4854f12c
commit c0ec5140ee

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( DefaultIOSystem::getOsSeparator() ) {}
// ------------------------------------------------------------------------------------------------
// Destructor.