diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2021-08-19 21:45:42 +0200 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2021-08-20 09:55:38 +0200 |
commit | 9ca30cd1d04cf39411c3ede687805c28ebe2a980 (patch) | |
tree | 909b3571e62663024f842fa9d9eb237ced9e4e21 /compilerplugins | |
parent | 3ad6d41c1c88b0549c9be0f41e02d83a582fcdfd (diff) |
VCL allow plugins to declare OpenGL support
... and get rid of the whole GetBackendCapabilities, which was
just overkill. Maybe this should even be some bitmap + enum
+ set/get function, but I'm too lazy...
In the end add a bool for the OpenGL support of the VCL plugin
(or maybe sticking it into ImplSVData, which is already some
catchall for common VCL data).
Change-Id: I9f0ececac482d8e2a94ef6024628e9631b49e773
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120760
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'compilerplugins')
-rw-r--r-- | compilerplugins/clang/singlevalfields.results | 3 | ||||
-rw-r--r-- | compilerplugins/clang/unnecessaryoverride.cxx | 5 | ||||
-rw-r--r-- | compilerplugins/clang/unusedfields.readonly.results | 2 |
3 files changed, 0 insertions, 10 deletions
diff --git a/compilerplugins/clang/singlevalfields.results b/compilerplugins/clang/singlevalfields.results index b2f91d4d97a1..c426b4a42580 100644 --- a/compilerplugins/clang/singlevalfields.results +++ b/compilerplugins/clang/singlevalfields.results @@ -976,9 +976,6 @@ vcl/headless/svpgdi.cxx:598 vcl/headless/svpgdi.cxx:1641 SvpSalGraphics::drawPolyLine bDoDirectCairoStroke 1 -vcl/inc/backend/BackendCapabilities.hxx:18 - vcl::BackendCapabilities mbSupportsBitmap32 - 0 vcl/inc/canvasbitmap.hxx:53 vcl::unotools::VclCanvasBitmap m_nEndianness 0 diff --git a/compilerplugins/clang/unnecessaryoverride.cxx b/compilerplugins/clang/unnecessaryoverride.cxx index 5013894aa398..7ce2627cc8fb 100644 --- a/compilerplugins/clang/unnecessaryoverride.cxx +++ b/compilerplugins/clang/unnecessaryoverride.cxx @@ -248,11 +248,6 @@ bool UnnecessaryOverride::VisitCXXMethodDecl(const CXXMethodDecl* methodDecl) return true; } - auto fdc = loplugin::DeclCheck(methodDecl); - // Has code only in #ifdef. - if (fdc.Function("GetBackendCapabilities").Class("X11SalInstance").GlobalNamespace()) - return true; - // If overriding more than one base member function, or one base member // function that is available in multiple (non-virtual) base class // instances, then this is a disambiguating override: diff --git a/compilerplugins/clang/unusedfields.readonly.results b/compilerplugins/clang/unusedfields.readonly.results index c04bf4eeaca0..c0234103d79d 100644 --- a/compilerplugins/clang/unusedfields.readonly.results +++ b/compilerplugins/clang/unusedfields.readonly.results @@ -686,8 +686,6 @@ unotools/source/config/pathoptions.cxx:85 SvtPathOptions_Impl m_aEmptyString class rtl::OUString unotools/source/config/saveopt.cxx:83 (anonymous namespace)::SvtSaveOptions_Impl bROUserAutoSave _Bool -vcl/inc/backend/BackendCapabilities.hxx:17 - vcl::BackendCapabilities mbSupportsBitmap32 _Bool vcl/inc/bitmap/BitmapFastScaleFilter.hxx:31 BitmapFastScaleFilter maSize class Size vcl/inc/ppdparser.hxx:131 |