X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ffdbfc4a7647556f83b9534a1faad71136fcff2a..c3a58b249e576b73b01cd74deb1cf879aa6e1975:/src/msw/registry.cpp?ds=inline diff --git a/src/msw/registry.cpp b/src/msw/registry.cpp index 3c31939c81..32d0d28510 100644 --- a/src/msw/registry.cpp +++ b/src/msw/registry.cpp @@ -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);