From aadf790bbceb1cde94c2a6fe8edfb9951edca0a0 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 3 Mar 2017 16:01:45 +0200 Subject: remove some unnecessary use of OUString constructor found with git grep -nP '<<= OUString\(\w*[A-Za-z]+' Change-Id: I43354842f1e0418fb292f2e8e0cb30f1229d1c67 Reviewed-on: https://gerrit.libreoffice.org/34864 Tested-by: Jenkins Reviewed-by: Noel Grandin --- starmath/source/unomodel.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'starmath') diff --git a/starmath/source/unomodel.cxx b/starmath/source/unomodel.cxx index 20bd008b3572..d8f9e0b00046 100644 --- a/starmath/source/unomodel.cxx +++ b/starmath/source/unomodel.cxx @@ -703,7 +703,7 @@ void SmModel::_getPropertyValues( const PropertyMapEntry **ppEntries, Any *pValu switch ( (*ppEntries)->mnHandle ) { case HANDLE_FORMULA: - *pValue <<= OUString(pDocSh->GetText()); + *pValue <<= pDocSh->GetText(); break; case HANDLE_FONT_NAME_VARIABLES : case HANDLE_FONT_NAME_FUNCTIONS : @@ -714,7 +714,7 @@ void SmModel::_getPropertyValues( const PropertyMapEntry **ppEntries, Any *pValu case HANDLE_CUSTOM_FONT_NAME_FIXED : { const SmFace & rFace = aFormat.GetFont((*ppEntries)->mnMemberId); - *pValue <<= OUString(rFace.GetFamilyName()); + *pValue <<= rFace.GetFamilyName(); } break; case HANDLE_CUSTOM_FONT_FIXED_POSTURE: -- cgit