From d934177bf48b908bdbd3e63caa646fc4b73a8f8f Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 3 Sep 2003 18:22:55 +0000 Subject: [PATCH] Changed this during testing so I didn't have to recompile everything each time I changed it. Why make this inline? It's not performance-critical at that level, and it's more code in the headers to slow down compiles. --- stepmania/src/RageUtil.cpp | 8 ++++++++ stepmania/src/RageUtil.h | 8 +------- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/stepmania/src/RageUtil.cpp b/stepmania/src/RageUtil.cpp index 4ab7b549d7..a9d9ad263a 100644 --- a/stepmania/src/RageUtil.cpp +++ b/stepmania/src/RageUtil.cpp @@ -308,6 +308,14 @@ void splitrelpath( const CString &Path, CString& Dir, CString& FName, CString& E } } +CString GetExtension( CString sPath ) +{ + CString Dir, FName, Ext; + splitrelpath( sPath, Dir, FName, Ext ); + Ext.MakeLower(); + return Ext; +} + /* mkdir -p. Doesn't fail if Path already exists and is a directory. */ bool CreateDirectories( CString Path ) { diff --git a/stepmania/src/RageUtil.h b/stepmania/src/RageUtil.h index 372453feef..19c6874f92 100644 --- a/stepmania/src/RageUtil.h +++ b/stepmania/src/RageUtil.h @@ -174,13 +174,7 @@ void splitrelpath( CString& Ext ); -inline CString GetExtension( CString sPath ) -{ - CString Dir, FName, Ext; - splitrelpath( sPath, Dir, FName, Ext ); - Ext.MakeLower(); - return Ext; -}; +CString GetExtension( CString sPath ); typedef int longchar; extern const wchar_t INVALID_CHAR;