tdf#97966: Remove 'static' keywords

Change-Id: Id991cead4f01830eafd9cf8dd63b519ef07c9451
Reviewed-on: https://gerrit.libreoffice.org/23134
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
Wastack
2016-03-11 01:00:27 +01:00
committed by Stephan Bergmann
parent 018c6adf85
commit 9a13cff647
8 changed files with 15 additions and 15 deletions

View File

@@ -79,11 +79,11 @@ public:
bool VisitCallExpr(const CallExpr* decl);
};
static bool startsWith(const std::string& rStr, const char* pSubStr) {
bool startsWith(const std::string& rStr, const char* pSubStr) {
return rStr.compare(0, strlen(pSubStr), pSubStr) == 0;
}
static void addToInstantiatedSet(const std::string& s)
void addToInstantiatedSet(const std::string& s)
{
// ignore stuff in the standard library, and UNO stuff we can't touch.
if (startsWith(s, "rtl::") || startsWith(s, "sal::") || startsWith(s, "com::sun::")
@@ -161,12 +161,12 @@ bool MergeClasses::VisitFunctionDecl(const FunctionDecl* decl)
return true;
}
static bool startswith(const std::string& s, const std::string& prefix)
bool startswith(const std::string& s, const std::string& prefix)
{
return s.rfind(prefix,0) == 0;
}
static bool endswith(const std::string& s, const std::string& suffix)
bool endswith(const std::string& s, const std::string& suffix)
{
return s.rfind(suffix) == (s.size()-suffix.size());
}