diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2022-12-01 16:36:07 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2022-12-01 18:35:46 +0100 |
commit | ddf8e2c9c366eb7b8757a589fd7b8e30849d2824 (patch) | |
tree | bf6dd9511e4f3d05095e2d94ddba7e2b2b38aa5f /vcl/inc/win/salgdi.h | |
parent | 5c28d80e766795b9e998f72f60abdfee01d5fe54 (diff) |
Avoid dynamic cross casts to WinSalGraphicsImplBase
Change-Id: I1102c5525f47d3e07cadc602dd55f7b78118a709
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143535
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl/inc/win/salgdi.h')
-rw-r--r-- | vcl/inc/win/salgdi.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/inc/win/salgdi.h b/vcl/inc/win/salgdi.h index f26f1d40f0c9..eb41d0304d1c 100644 --- a/vcl/inc/win/salgdi.h +++ b/vcl/inc/win/salgdi.h @@ -144,6 +144,7 @@ class WinSalGraphics : public SalGraphics protected: std::unique_ptr<SalGraphicsImpl> mpImpl; + WinSalGraphicsImplBase * mWinSalGraphicsImplBase; private: HDC mhLocalDC; // HDC @@ -210,6 +211,7 @@ public: virtual ~WinSalGraphics() override; SalGraphicsImpl* GetImpl() const override; + WinSalGraphicsImplBase * getWinSalGraphicsImplBase() const { return mWinSalGraphicsImplBase; } bool isPrinter() const; bool isVirtualDevice() const; bool isWindow() const; |