summaryrefslogtreecommitdiffstats
path: root/compilerplugins/clang/store/stringbuffer.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'compilerplugins/clang/store/stringbuffer.cxx')
-rw-r--r--compilerplugins/clang/store/stringbuffer.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/compilerplugins/clang/store/stringbuffer.cxx b/compilerplugins/clang/store/stringbuffer.cxx
index 61df3069a51c..899c9b6ac2d8 100644
--- a/compilerplugins/clang/store/stringbuffer.cxx
+++ b/compilerplugins/clang/store/stringbuffer.cxx
@@ -9,7 +9,6 @@
#ifndef LO_CLANG_SHARED_PLUGINS
#include "check.hxx"
-#include "compat.hxx"
#include "plugin.hxx"
#include <vector>
@@ -58,11 +57,11 @@ bool StringBuffer::VisitCXXMemberCallExpr(CXXMemberCallExpr const* memberCallExp
auto matTemp = dyn_cast<MaterializeTemporaryExpr>(memberCallExpr->getArg(0));
if (!matTemp)
return true;
- if (!isa<CXXOperatorCallExpr>(compat::getSubExpr(matTemp)))
+ if (!isa<CXXOperatorCallExpr>(matTemp->getSubExpr()))
return true;
report(DiagnosticsEngine::Warning,
"appending added result of OUString to OUStringBuffer, rather do .append(x).append(y)",
- compat::getBeginLoc(memberCallExpr))
+ memberCallExpr->getBeginLoc())
<< memberCallExpr->getSourceRange();
return true;
}