diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-12-08 09:44:34 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-12-08 09:44:34 +0100 |
commit | b0e427d8aac1a54681a2a6d0acbd1b54394961b9 (patch) | |
tree | b0d90bbfd131f3cd4a91a34ce618bcbd5098b3fb /compilerplugins/clang/vclwidgets.cxx | |
parent | ac97f32307feb488c86d6fa962258fe79320d31b (diff) |
Remove apparently unnecessary checks
...they don't cause any change in behavior, likely they predated Noel's figuring
out the template part of containsWindowSubclass
Change-Id: I0d5b6bd7f228acef9a0ce1c85fe98fbab89bd7a8
Diffstat (limited to 'compilerplugins/clang/vclwidgets.cxx')
-rw-r--r-- | compilerplugins/clang/vclwidgets.cxx | 21 |
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", |