summaryrefslogtreecommitdiff
path: root/sw/source/uibase/uiview/viewprt.cxx
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 /sw/source/uibase/uiview/viewprt.cxx
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>
Diffstat (limited to 'sw/source/uibase/uiview/viewprt.cxx')
-rw-r--r--sw/source/uibase/uiview/viewprt.cxx4
1 files changed, 2 insertions, 2 deletions
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());
}
}