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 --- sd/source/ui/sidebar/RecentlyUsedMasterPages.cxx | 4 ++-- sd/source/ui/unoidl/unomodel.cxx | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'sd') diff --git a/sd/source/ui/sidebar/RecentlyUsedMasterPages.cxx b/sd/source/ui/sidebar/RecentlyUsedMasterPages.cxx index a25c35d432d4..50fb75d2a2d7 100644 --- a/sd/source/ui/sidebar/RecentlyUsedMasterPages.cxx +++ b/sd/source/ui/sidebar/RecentlyUsedMasterPages.cxx @@ -220,10 +220,10 @@ void RecentlyUsedMasterPages::SavePersistentValues() { xSet->insertByName (sKey, makeAny(xChild)); - aValue <<= OUString(iDescriptor->msURL); + aValue <<= iDescriptor->msURL; xChild->replaceByName (sURLMemberName, aValue); - aValue <<= OUString(iDescriptor->msName); + aValue <<= iDescriptor->msName; xChild->replaceByName (sNameMemberName, aValue); } } diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx index f997ac79e0ae..d86f4a9a7def 100644 --- a/sd/source/ui/unoidl/unomodel.cxx +++ b/sd/source/ui/unoidl/unomodel.cxx @@ -1383,8 +1383,8 @@ uno::Any SAL_CALL SdXImpressDocument::getPropertyValue( const OUString& Property { const SvxFontItem *pFont = static_cast(pItem); - aSeq[nSeqIndex++] <<= OUString(pFont->GetFamilyName()); - aSeq[nSeqIndex++] <<= OUString(pFont->GetStyleName()); + aSeq[nSeqIndex++] <<= pFont->GetFamilyName(); + aSeq[nSeqIndex++] <<= pFont->GetStyleName(); aSeq[nSeqIndex++] <<= sal_Int16(pFont->GetFamily()); aSeq[nSeqIndex++] <<= sal_Int16(pFont->GetPitch()); aSeq[nSeqIndex++] <<= sal_Int16(pFont->GetCharSet()); @@ -1393,8 +1393,8 @@ uno::Any SAL_CALL SdXImpressDocument::getPropertyValue( const OUString& Property const SvxFontItem& rFont = static_cast(rPool.GetDefaultItem( nWhichId )); - aSeq[nSeqIndex++] <<= OUString(rFont.GetFamilyName()); - aSeq[nSeqIndex++] <<= OUString(rFont.GetStyleName()); + aSeq[nSeqIndex++] <<= rFont.GetFamilyName(); + aSeq[nSeqIndex++] <<= rFont.GetStyleName(); aSeq[nSeqIndex++] <<= sal_Int16(rFont.GetFamily()); aSeq[nSeqIndex++] <<= sal_Int16(rFont.GetPitch()); aSeq[nSeqIndex++] <<= sal_Int16(rFont.GetCharSet()); -- cgit