summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2017-03-23 20:14:15 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-03-27 09:43:58 +0000
commitd615af618cc6a7152c76a49b3cd09db38eaa9e07 (patch)
treebc0d69070444dc687708de9a4a146c5c2d3b6852 /starmath
parent6f968f00b1534406a2943be374fab924c3396482 (diff)
create SfxInterfaceId o3tl::strong_int
Change-Id: Ie52f63382a9fb36f9a472801be012b140bfb51f6 Reviewed-on: https://gerrit.libreoffice.org/35722 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath')
-rw-r--r--starmath/inc/document.hxx2
-rw-r--r--starmath/inc/smmod.hxx2
-rw-r--r--starmath/inc/view.hxx2
-rw-r--r--starmath/qa/cppunit/test_starmath.cxx2
-rw-r--r--starmath/source/smdll.cxx2
5 files changed, 5 insertions, 5 deletions
diff --git a/starmath/inc/document.hxx b/starmath/inc/document.hxx
index 83cda04329a6..0c72a33f50a1 100644
--- a/starmath/inc/document.hxx
+++ b/starmath/inc/document.hxx
@@ -136,7 +136,7 @@ class SM_DLLPUBLIC SmDocShell : public SfxObjectShell, public SfxListener
void InvalidateCursor();
public:
- SFX_DECL_INTERFACE(SFX_INTERFACE_SMA_START+1)
+ SFX_DECL_INTERFACE(SFX_INTERFACE_SMA_START+SfxInterfaceId(1))
SFX_DECL_OBJECTFACTORY();
diff --git a/starmath/inc/smmod.hxx b/starmath/inc/smmod.hxx
index 15036a7f6792..3e35885b3af8 100644
--- a/starmath/inc/smmod.hxx
+++ b/starmath/inc/smmod.hxx
@@ -93,7 +93,7 @@ class SmModule : public SfxModule, public utl::ConfigurationListener
static void ApplyColorConfigValues( const svtools::ColorConfig &rColorCfg );
public:
- SFX_DECL_INTERFACE(SFX_INTERFACE_SMA_START + 0)
+ SFX_DECL_INTERFACE(SFX_INTERFACE_SMA_START + SfxInterfaceId(0))
private:
/// SfxInterface initializer.
diff --git a/starmath/inc/view.hxx b/starmath/inc/view.hxx
index b41f5a78caa9..83cf858ba36f 100644
--- a/starmath/inc/view.hxx
+++ b/starmath/inc/view.hxx
@@ -294,7 +294,7 @@ public:
void NextError();
void PrevError();
- SFX_DECL_INTERFACE(SFX_INTERFACE_SMA_START+2)
+ SFX_DECL_INTERFACE(SFX_INTERFACE_SMA_START+SfxInterfaceId(2))
SFX_DECL_VIEWFACTORY(SmViewShell);
private:
diff --git a/starmath/qa/cppunit/test_starmath.cxx b/starmath/qa/cppunit/test_starmath.cxx
index becdcc5f6ec0..8ec24004e9ad 100644
--- a/starmath/qa/cppunit/test_starmath.cxx
+++ b/starmath/qa/cppunit/test_starmath.cxx
@@ -108,7 +108,7 @@ void Test::setUp()
SfxModelFlags::DISABLE_DOCUMENT_RECOVERY);
m_xDocShRef->DoInitNew();
- SfxViewFrame *pViewFrame = SfxViewFrame::LoadHiddenDocument(*m_xDocShRef, 0);
+ SfxViewFrame *pViewFrame = SfxViewFrame::LoadHiddenDocument(*m_xDocShRef, SFX_INTERFACE_NONE);
CPPUNIT_ASSERT_MESSAGE("Should have a SfxViewFrame", pViewFrame);
diff --git a/starmath/source/smdll.cxx b/starmath/source/smdll.cxx
index 88d53c164fc8..162d26e915fd 100644
--- a/starmath/source/smdll.cxx
+++ b/starmath/source/smdll.cxx
@@ -65,7 +65,7 @@ namespace
SmDocShell::RegisterInterface(pModule);
SmViewShell::RegisterInterface(pModule);
- SmViewShell::RegisterFactory(1);
+ SmViewShell::RegisterFactory(SFX_INTERFACE_SFXAPP);
SvxZoomStatusBarControl::RegisterControl(SID_ATTR_ZOOM, pModule);
SvxZoomSliderControl::RegisterControl(SID_ATTR_ZOOMSLIDER, pModule);