From 18bbfdac1a3a6e30ea88bfac543a29673c72469e Mon Sep 17 00:00:00 2001 From: escherstair Date: Thu, 19 Sep 2019 08:01:47 +0200 Subject: [PATCH] init variable 'base' in initializer list --- code/Obj/ObjFileImporter.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/code/Obj/ObjFileImporter.cpp b/code/Obj/ObjFileImporter.cpp index 549956474..bd7985740 100644 --- a/code/Obj/ObjFileImporter.cpp +++ b/code/Obj/ObjFileImporter.cpp @@ -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.