Files - Use T_FSPath
This commit is contained in:
parent
5497856be2
commit
424ba93472
3 changed files with 9 additions and 8 deletions
src
|
@ -13,7 +13,8 @@ T_File::T_File( )
|
|||
: path_( ) , file_( nullptr )
|
||||
{ }
|
||||
|
||||
T_File::T_File( T_String const& path , E_FileMode mode )
|
||||
T_File::T_File( T_FSPath const& path ,
|
||||
const E_FileMode mode )
|
||||
: path_( path ) , mode_( mode ) , file_( nullptr )
|
||||
{ }
|
||||
|
||||
|
@ -38,7 +39,7 @@ void T_File::open( )
|
|||
}
|
||||
|
||||
// Copy file path to C string
|
||||
const T_Buffer< char > path( path_.toOSString( ) );
|
||||
const T_Buffer< char > path( path_.toString( ).toOSString( ) );
|
||||
|
||||
// Select the right mode
|
||||
char const* const mode( ([this]() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue