summaryrefslogtreecommitdiff
path: root/starmath/source/unomodel.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-05-19 17:17:03 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-05-19 17:17:03 +0200
commitc8b19bdd2a2f3658e158bae44d4b472497591f85 (patch)
tree02446a5978aaba7fee40934a55203355623ff211 /starmath/source/unomodel.cxx
parent02d0f134f300b0f739f09aa2743ed904cfa6666e (diff)
loplugin:stringcopy: starmath
Change-Id: I2687b8ce4b20871f50401cbc50746c35b9668eba
Diffstat (limited to 'starmath/source/unomodel.cxx')
-rw-r--r--starmath/source/unomodel.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/starmath/source/unomodel.cxx b/starmath/source/unomodel.cxx
index 9621ecec73a8..e2d882f011f6 100644
--- a/starmath/source/unomodel.cxx
+++ b/starmath/source/unomodel.cxx
@@ -444,7 +444,7 @@ void SmModel::_setPropertyValues(const PropertyMapEntry** ppEntries, const Any*
if(sFontName.isEmpty())
throw IllegalArgumentException();
- if(OUString(aFormat.GetFont((*ppEntries)->mnMemberId).GetFamilyName()) != sFontName)
+ if(aFormat.GetFont((*ppEntries)->mnMemberId).GetFamilyName() != sFontName)
{
const SmFace rOld = aFormat.GetFont((*ppEntries)->mnMemberId);
@@ -802,7 +802,7 @@ void SmModel::_getPropertyValues( const PropertyMapEntry **ppEntries, Any *pValu
case HANDLE_PRINTER_NAME:
{
SfxPrinter *pPrinter = pDocSh->GetPrinter ( );
- *pValue <<= pPrinter ? OUString ( pPrinter->GetName()) : OUString();
+ *pValue <<= pPrinter ? pPrinter->GetName() : OUString();
}
break;
case HANDLE_PRINTER_SETUP: