diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-01-13 09:31:38 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-01-15 10:14:16 +0000 |
commit | 4f0012b73cfabc039da4c78dc993abb42c9cf987 (patch) | |
tree | 85e73f47244abc811fb5edd2d14c7bbd8e962bc9 /vcl/source/graphic | |
parent | e5e40c0bf56806540850d440ad10a26f33e3387c (diff) |
XUnoTunnel->dynamic_cast in UnoBinaryDataContainer
Change-Id: Ifdef69448558f4c5d6902188208d3eea1a080334
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145506
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/graphic')
-rw-r--r-- | vcl/source/graphic/BinaryDataContainerTools.cxx | 2 | ||||
-rw-r--r-- | vcl/source/graphic/UnoBinaryDataContainer.cxx | 3 |
2 files changed, 1 insertions, 4 deletions
diff --git a/vcl/source/graphic/BinaryDataContainerTools.cxx b/vcl/source/graphic/BinaryDataContainerTools.cxx index 359a8664daa6..c64380331356 100644 --- a/vcl/source/graphic/BinaryDataContainerTools.cxx +++ b/vcl/source/graphic/BinaryDataContainerTools.cxx @@ -18,7 +18,7 @@ BinaryDataContainer convertUnoBinaryDataContainer( { BinaryDataContainer aBinaryDataContainer; UnoBinaryDataContainer* pUnoBinaryDataContainer - = comphelper::getFromUnoTunnel<UnoBinaryDataContainer>(rxBinaryDataContainer); + = dynamic_cast<UnoBinaryDataContainer*>(rxBinaryDataContainer.get()); if (pUnoBinaryDataContainer) aBinaryDataContainer = pUnoBinaryDataContainer->getBinaryDataContainer(); return aBinaryDataContainer; diff --git a/vcl/source/graphic/UnoBinaryDataContainer.cxx b/vcl/source/graphic/UnoBinaryDataContainer.cxx index 8ee3660be416..4d6a0de9f796 100644 --- a/vcl/source/graphic/UnoBinaryDataContainer.cxx +++ b/vcl/source/graphic/UnoBinaryDataContainer.cxx @@ -14,9 +14,6 @@ using namespace css; -// css::lang::XUnoTunnel -UNO3_GETIMPLEMENTATION_IMPL(UnoBinaryDataContainer); - css::uno::Sequence<sal_Int8> SAL_CALL UnoBinaryDataContainer::getCopyAsByteSequence() { if (maBinaryDataContainer.isEmpty()) |