소스 검색

init variable in initializer list

escherstair 6 년 전
부모
커밋
c0ec5140ee
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( DefaultIOSystem::getOsSeparator() ) {}
 
 // ------------------------------------------------------------------------------------------------
 //  Destructor.