summaryrefslogtreecommitdiff
path: root/compilerplugins/clang
diff options
context:
space:
mode:
Diffstat (limited to 'compilerplugins/clang')
-rw-r--r--compilerplugins/clang/vclwidgets.cxx21
1 files changed, 1 insertions, 20 deletions
diff --git a/compilerplugins/clang/vclwidgets.cxx b/compilerplugins/clang/vclwidgets.cxx
index 0385ce046441..89f80a57235a 100644
--- a/compilerplugins/clang/vclwidgets.cxx
+++ b/compilerplugins/clang/vclwidgets.cxx
@@ -246,26 +246,7 @@ bool VCLWidgets::VisitVarDecl(const VarDecl * pVarDecl) {
return true;
}
- if ( !startsWith(pVarDecl->getType().getAsString(), "std::vector<vcl::Window *>")
- && !startsWith(pVarDecl->getType().getAsString(), "std::map<vcl::Window *, Size>")
- && !startsWith(pVarDecl->getType().getAsString(), "std::map<vcl::Window *, class Size>")
- && !startsWith(pVarDecl->getType().getAsString(), "::std::vector<class Button *>")
- && !startsWith(pVarDecl->getType().getAsString(), "::std::vector<Button *>")
- && !startsWith(pVarDecl->getType().getAsString(), "::std::mem_fun1_t<")
- && !startsWith(pVarDecl->getType().getAsString(), "::comphelper::mem_fun1_t<")
- && !startsWith(pVarDecl->getType().getAsString(), "::std::pair<formula::RefButton *, formula::RefEdit *>")
- && !startsWith(pVarDecl->getType().getAsString(), "::std::pair<RefButton *, RefEdit *>")
- && !startsWith(pVarDecl->getType().getAsString(), "std::list<SwSidebarWin *>")
- && !startsWith(pVarDecl->getType().getAsString(), "::std::map<OTableWindow *, sal_Int32>")
- && !startsWith(pVarDecl->getType().getAsString(), "::std::map<class OTableWindow *, sal_Int32>")
- && !startsWith(pVarDecl->getType().getAsString(), "::std::multimap<sal_Int32, OTableWindow *>")
- && !startsWith(pVarDecl->getType().getAsString(), "::std::multimap<sal_Int32, class OTableWindow *>")
- && !startsWith(pVarDecl->getType().getAsString(), "::dbp::OMultiInstanceAutoRegistration< ::dbp::OUnoAutoPilot<")
- && !startsWith(pVarDecl->getType().getAsString(), "SwSidebarWin_iterator")
- && !startsWith(pVarDecl->getType().getAsString(), "functor_vector_type")
- && !startsWith(pVarDecl->getType().getAsString(), "const functor_vector_type")
- && containsWindowSubclass(pVarDecl->getType()))
- {
+ if (containsWindowSubclass(pVarDecl->getType())) {
report(
DiagnosticsEngine::Warning,
"OutputDevice subclass %0 should be wrapped in VclPtr",