summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-12-02 09:22:32 +0100
committerStephan Bergmann <sbergman@redhat.com>2022-12-02 10:11:38 +0000
commit9c6fa5fc984cbfc1a2aa3ece8411cc61263390e6 (patch)
treed97e008d202fb30ac60dc40ca8d6f82827ff4c21 /sw
parentcf551bf23d6527419bc09d8719e5ce7d5e45fb3a (diff)
Replace some uses of static_type with UnoType
(which is what that static_type scaffolding calls internally, anyway) Change-Id: Ibd8097de0d6a9cd0040c34e5070dafa8db256b56 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143566 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/vba/vbaapplication.cxx3
-rw-r--r--sw/source/ui/vba/vbadocument.cxx3
2 files changed, 4 insertions, 2 deletions
diff --git a/sw/source/ui/vba/vbaapplication.cxx b/sw/source/ui/vba/vbaapplication.cxx
index 448ad8626445..debbd6b14b65 100644
--- a/sw/source/ui/vba/vbaapplication.cxx
+++ b/sw/source/ui/vba/vbaapplication.cxx
@@ -45,6 +45,7 @@
#include <ooo/vba/word/XBookmarks.hpp>
#include <comphelper/processfactory.hxx>
#include <comphelper/propertyvalue.hxx>
+#include <cppu/unotype.hxx>
#include <editeng/acorrcfg.hxx>
#include <swdll.hxx>
#include <swmodule.hxx>
@@ -457,7 +458,7 @@ TypeAndIID SAL_CALL
SwVbaApplication::GetConnectionPoint()
{
TypeAndIID aResult =
- { word::XApplicationOutgoing::static_type(),
+ { cppu::UnoType<word::XApplicationOutgoing>::get(),
"{82154422-0FBF-11D4-8313-005004526AB4}"
};
diff --git a/sw/source/ui/vba/vbadocument.cxx b/sw/source/ui/vba/vbadocument.cxx
index f08974ef06e0..c7e9731001bf 100644
--- a/sw/source/ui/vba/vbadocument.cxx
+++ b/sw/source/ui/vba/vbadocument.cxx
@@ -32,6 +32,7 @@
#include "vbavariables.hxx"
#include <comphelper/processfactory.hxx>
#include <comphelper/propertyvalue.hxx>
+#include <cppu/unotype.hxx>
#include <com/sun/star/text/XBookmarksSupplier.hpp>
#include <com/sun/star/document/XDocumentPropertiesSupplier.hpp>
@@ -701,7 +702,7 @@ TypeAndIID SAL_CALL
SwVbaDocument::GetConnectionPoint()
{
TypeAndIID aResult =
- { word::XDocumentOutgoing::static_type(),
+ { cppu::UnoType<word::XDocumentOutgoing>::get(),
"{82154429-0FBF-11D4-8313-005004526AB4}"
};