init variable in initializer list

pull/2658/head
escherstair 2019-09-18 08:18:52 +02:00 committed by GitHub
parent 6d4854f12c
commit c0ec5140ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 4 deletions

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.