summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2019-11-21 09:53:34 +0100
committerMichael Weghorn <m.weghorn@posteo.de>2019-11-21 19:29:42 +0100
commit0bd54ab69b52764a705637735b064f92d0772f8d (patch)
treeb376a6d19854618ba47382347f0b86e5ce9c81e6
parent10cb99a810539f1f3691609700fe855c961ef6ac (diff)
Drop SwAddPrinterItem::GetFax
Base class's SwPrintData::GetFaxName does exactly the same thing, namely returning its 'm_sFaxName' member, so just use this one directly. Change-Id: Idd50eeeba94a1b1a25c5475511a60730368884c7 Reviewed-on: https://gerrit.libreoffice.org/83393 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
-rw-r--r--sw/source/uibase/inc/cfgitems.hxx2
-rw-r--r--sw/source/uibase/uiview/viewprt.cxx4
2 files changed, 2 insertions, 4 deletions
diff --git a/sw/source/uibase/inc/cfgitems.hxx b/sw/source/uibase/inc/cfgitems.hxx
index 4118708306e3..33b11bfe17f2 100644
--- a/sw/source/uibase/inc/cfgitems.hxx
+++ b/sw/source/uibase/inc/cfgitems.hxx
@@ -106,8 +106,6 @@ public:
virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
virtual bool operator==( const SfxPoolItem& ) const override;
-
- const OUString &GetFax() const { return m_sFaxName; }
};
// Item for settings dialog, ShadowCursorPage
diff --git a/sw/source/uibase/uiview/viewprt.cxx b/sw/source/uibase/uiview/viewprt.cxx
index 21eb1ca77826..940b59fc95c3 100644
--- a/sw/source/uibase/uiview/viewprt.cxx
+++ b/sw/source/uibase/uiview/viewprt.cxx
@@ -105,8 +105,8 @@ void SetPrinter( IDocumentDeviceAccess* pIDDA, SfxPrinter const * pNew, bool bWe
{
if( pIDDA )
pIDDA->setPrintData( *pAddPrinterAttr );
- if( !pAddPrinterAttr->GetFax().isEmpty() )
- pOpt->SetFaxName(pAddPrinterAttr->GetFax());
+ if( !pAddPrinterAttr->GetFaxName().isEmpty() )
+ pOpt->SetFaxName(pAddPrinterAttr->GetFaxName());
}
}