summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/fpcomparison.cxx
diff options
context:
space:
mode:
authorWastack <btomi96@gmail.com>2016-03-11 01:00:27 +0100
committerStephan Bergmann <sbergman@redhat.com>2016-03-11 08:57:51 +0000
commit9a13cff64783a7de3dce7d484c150605bd42a4d6 (patch)
tree68f9f34bf5b763578067e205e04cacf0652242c0 /compilerplugins/clang/fpcomparison.cxx
parent018c6adf85097d07a0b0fbce3d7155ca5a369ae1 (diff)
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>
Diffstat (limited to 'compilerplugins/clang/fpcomparison.cxx')
-rw-r--r--compilerplugins/clang/fpcomparison.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/compilerplugins/clang/fpcomparison.cxx b/compilerplugins/clang/fpcomparison.cxx
index 8d20b8cb6c0c..491eb80f2d77 100644
--- a/compilerplugins/clang/fpcomparison.cxx
+++ b/compilerplugins/clang/fpcomparison.cxx
@@ -40,7 +40,7 @@ private:
EState meState = EState::None;
};
-static const std::set<std::string> whitelist {
+const std::set<std::string> whitelist {
"rtl::math::approxEqual",
"(anonymous namespace)::doubleToString",
"(anonymous namespace)::stringToDouble",
@@ -95,7 +95,7 @@ bool FpComparison::ignore(FunctionDecl* function)
return false;
}
-static bool isZeroConstant(ASTContext& context, const Expr* expr)
+bool isZeroConstant(ASTContext& context, const Expr* expr)
{
if (!expr->getType()->isFloatingType()) {
return false;