restore declaration inline specifier, and make definition match

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44087 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett
2007-01-01 22:27:42 +00:00
parent 4e8107d57a
commit ca2261d33f
3 changed files with 10 additions and 10 deletions

View File

@@ -108,7 +108,7 @@ aStdKeys[] =
// ----------------------------------------------------------------------------
// removes the trailing backslash from the string if it has one
static void RemoveTrailingSeparator(wxString& str);
static inline void RemoveTrailingSeparator(wxString& str);
// returns true if given registry key exists
static bool KeyExists(WXHKEY hRootKey, const wxChar *szKey);
@@ -1413,7 +1413,7 @@ const wxChar *GetFullName(const wxRegKey *pKey, const wxChar *szValue)
return s_str.c_str();
}
void RemoveTrailingSeparator(wxString& str)
inline void RemoveTrailingSeparator(wxString& str)
{
if ( !str.empty() && str.Last() == REG_SEPARATOR )
str.Truncate(str.Len() - 1);