瀏覽代碼

init variable 'base' in initializer list

escherstair 6 年之前
父節點
當前提交
18bbfdac1a
共有 1 個文件被更改,包括 1 次插入4 次删除
  1. 1 4
      code/Obj/ObjFileImporter.cpp

+ 1 - 4
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.