Skip to content

Commit 6708e2f

Browse files
committed
Renaming function
1 parent a48a474 commit 6708e2f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Providers/UserProjectSettings.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ std::string UserProjectSettings::GetProjectDirectoryPath( bool bAddDataDirectory
132132
#ifndef __linux__
133133
projectDirectoryName = std::string( exePathFilename ) + "_Data\\";
134134
#else
135-
projectDirectoryName = RemoveExtension( std::string( basename( fullExePath ) ) + "_Data/" );
135+
projectDirectoryName = RemoveFileExtension( std::string( basename( fullExePath ) ) + "_Data/" );
136136
#endif
137137

138138
std::string projectDirectoryPath = basePath + projectDirectoryName;
@@ -198,7 +198,7 @@ void UserProjectSettings::Trim( std::string &s )
198198
s = std::string( it, rit.base() );
199199
}
200200

201-
std::string UserProjectSettings::RemoveExtension( const std::string& filename )
201+
std::string UserProjectSettings::RemoveFileExtension( const std::string& filename )
202202
{
203203
size_t lastdot = filename.find_last_of( "." );
204204
if ( lastdot == std::string::npos )

Providers/UserProjectSettings.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,5 @@ class UserProjectSettings
4545
static std::string GetExecutablePath();
4646
static void Trim( std::string &s );
4747
static bool DirectoryExists( const char *const path );
48-
static std::string RemoveExtension( const std::string &filename );
48+
static std::string RemoveFileExtension( const std::string &filename );
4949
};

0 commit comments

Comments
 (0)