summaryrefslogtreecommitdiff
path: root/sw/source/uibase/uno
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-04-21 12:16:52 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-04-23 13:48:37 +0200
commit93449eee17d88532cb8679496a523ded9cd03b0a (patch)
tree2cda72577449d17af20039bee928406d92b17fcf /sw/source/uibase/uno
parentf586c7ec352b3b7b23dba0e1e774d85b1c14e2b7 (diff)
merge comphelper::ChainablePropertySet with comphelper::ChainableHelperNoState
Change-Id: I8fb93665b2a2f46019306f473882a7f3d7aece87 Reviewed-on: https://gerrit.libreoffice.org/36787 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/uno')
-rw-r--r--sw/source/uibase/uno/unomod.cxx8
-rw-r--r--sw/source/uibase/uno/unotxvw.cxx5
2 files changed, 6 insertions, 7 deletions
diff --git a/sw/source/uibase/uno/unomod.cxx b/sw/source/uibase/uno/unomod.cxx
index 0a54ad6f9843..a83faf7ec865 100644
--- a/sw/source/uibase/uno/unomod.cxx
+++ b/sw/source/uibase/uno/unomod.cxx
@@ -209,7 +209,7 @@ Reference< XPropertySet > SwXModule::getViewSettings()
if(!mxViewSettings.is())
{
OSL_FAIL("Web or Text?");
- mxViewSettings = static_cast < HelperBaseNoState * > ( new SwXViewSettings( nullptr ) );
+ mxViewSettings = new SwXViewSettings( nullptr );
}
return mxViewSettings;
}
@@ -220,7 +220,7 @@ Reference< XPropertySet > SwXModule::getPrintSettings()
if(!mxPrintSettings.is())
{
OSL_FAIL("Web or Text?");
- mxPrintSettings = static_cast < HelperBaseNoState * > ( new SwXPrintSettings ( SwXPrintSettingsType::Module ) );
+ mxPrintSettings = new SwXPrintSettings( SwXPrintSettingsType::Module );
}
return mxPrintSettings;
}
@@ -243,7 +243,7 @@ Sequence< OUString > SwXModule::getSupportedServiceNames()
}
SwXPrintSettings::SwXPrintSettings(SwXPrintSettingsType eType, SwDoc* pDoc)
-: ChainableHelperNoState ( lcl_createPrintSettingsInfo (), &Application::GetSolarMutex() )
+: ChainablePropertySet ( lcl_createPrintSettingsInfo (), &Application::GetSolarMutex() )
, meType(eType)
, mpPrtOpt ( nullptr )
, mpDoc ( pDoc )
@@ -516,7 +516,7 @@ Sequence< OUString > SwXPrintSettings::getSupportedServiceNames()
}
SwXViewSettings::SwXViewSettings(SwView* pVw)
- : ChainableHelperNoState( lcl_createViewSettingsInfo (), &Application::GetSolarMutex() )
+ : ChainablePropertySet( lcl_createViewSettingsInfo (), &Application::GetSolarMutex() )
, pView(pVw)
, mpViewOption(nullptr)
, mpConstViewOption(nullptr)
diff --git a/sw/source/uibase/uno/unotxvw.cxx b/sw/source/uibase/uno/unotxvw.cxx
index ef383b94c874..040e883ad877 100644
--- a/sw/source/uibase/uno/unotxvw.cxx
+++ b/sw/source/uibase/uno/unotxvw.cxx
@@ -85,7 +85,6 @@ using namespace ::com::sun::star::view;
using namespace ::com::sun::star::frame;
using ::com::sun::star::util::URL;
-using comphelper::HelperBaseNoState;
SwXTextView::SwXTextView(SwView* pSwView) :
SfxBaseController(pSwView),
@@ -107,7 +106,7 @@ void SwXTextView::Invalidate()
{
if(mxViewSettings.is())
{
- HelperBaseNoState *pSettings = static_cast < HelperBaseNoState * > ( mxViewSettings.get() );
+ comphelper::ChainablePropertySet *pSettings = static_cast < comphelper::ChainablePropertySet * > ( mxViewSettings.get() );
static_cast < SwXViewSettings* > ( pSettings )->Invalidate();
mxViewSettings.clear();
}
@@ -504,7 +503,7 @@ uno::Reference< beans::XPropertySet > SwXTextView::getViewSettings()
{
if(!mxViewSettings.is())
{
- mxViewSettings = static_cast < HelperBaseNoState * > ( new SwXViewSettings( m_pView ) );
+ mxViewSettings = new SwXViewSettings( m_pView );
}
}
else