Bug 1460055 - Make strimatch static to fix error with GCC about exception handling mangling. r?aklotz
MozReview-Commit-ID: CLBt2Siasdm
--- a/toolkit/xre/CmdLineAndEnvUtils.h
+++ b/toolkit/xre/CmdLineAndEnvUtils.h
@@ -51,17 +51,17 @@ RemoveArg(int& argc, CharT **argv)
} while (*argv);
--argc;
}
namespace internal {
template <typename FuncT, typename CharT>
-inline bool
+static inline bool
strimatch(FuncT aToLowerFn, const CharT* lowerstr, const CharT* mixedstr)
{
while(*lowerstr) {
if (!*mixedstr) return false; // mixedstr is shorter
if (static_cast<CharT>(aToLowerFn(*mixedstr)) != *lowerstr) return false; // no match
++lowerstr;
++mixedstr;