summaryrefslogtreecommitdiffstats
path: root/svl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-05-19 17:16:58 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-05-19 17:16:58 +0200
commit02d0f134f300b0f739f09aa2743ed904cfa6666e (patch)
tree68f8894819e32cb09665351e4824254c5029316c /svl
parentloplugin:stringcopy: svtools (diff)
downloadcore-02d0f134f300b0f739f09aa2743ed904cfa6666e.tar.gz
core-02d0f134f300b0f739f09aa2743ed904cfa6666e.zip
loplugin:stringcopy: svl
Change-Id: I47a0e13c5affa220646c59ec0bddb342f858fe53
Diffstat (limited to 'svl')
-rw-r--r--svl/source/items/ctypeitm.cxx2
-rw-r--r--svl/source/numbers/numfmuno.cxx6
-rw-r--r--svl/source/numbers/zforscan.cxx4
3 files changed, 6 insertions, 6 deletions
diff --git a/svl/source/items/ctypeitm.cxx b/svl/source/items/ctypeitm.cxx
index e01703bef86a..654c4a453fc2 100644
--- a/svl/source/items/ctypeitm.cxx
+++ b/svl/source/items/ctypeitm.cxx
@@ -166,7 +166,7 @@ void CntContentTypeItem::SetValue( const INetContentType eType )
// virtual
bool CntContentTypeItem::QueryValue( css::uno::Any& rVal, sal_uInt8) const
{
- rVal <<= OUString(GetValue());
+ rVal <<= GetValue();
return true;
}
diff --git a/svl/source/numbers/numfmuno.cxx b/svl/source/numbers/numfmuno.cxx
index bc0bf3a59e95..ee05e50a581f 100644
--- a/svl/source/numbers/numfmuno.cxx
+++ b/svl/source/numbers/numfmuno.cxx
@@ -677,7 +677,7 @@ uno::Any SAL_CALL SvNumberFormatObj::getPropertyValue( const OUString& aProperty
if (aPropertyName == PROPERTYNAME_FMTSTR)
{
- aRet <<= OUString( pFormat->GetFormatstring() );
+ aRet <<= pFormat->GetFormatstring();
}
else if (aPropertyName == PROPERTYNAME_LOCALE)
{
@@ -690,7 +690,7 @@ uno::Any SAL_CALL SvNumberFormatObj::getPropertyValue( const OUString& aProperty
}
else if (aPropertyName == PROPERTYNAME_COMMENT)
{
- aRet <<= OUString( pFormat->GetComment() );
+ aRet <<= pFormat->GetComment();
}
else if (aPropertyName == PROPERTYNAME_STDFORM)
{
@@ -741,7 +741,7 @@ uno::Any SAL_CALL SvNumberFormatObj::getPropertyValue( const OUString& aProperty
const NfCurrencyEntry* pCurr = SvNumberFormatter::GetCurrencyEntry( bBank,
aSymbol, aExt, pFormat->GetLanguage() );
if ( pCurr )
- aRet <<= OUString( pCurr->GetBankSymbol() );
+ aRet <<= pCurr->GetBankSymbol();
else
aRet <<= OUString();
}
diff --git a/svl/source/numbers/zforscan.cxx b/svl/source/numbers/zforscan.cxx
index 16d5f31bd65b..a1d8de727ade 100644
--- a/svl/source/numbers/zforscan.cxx
+++ b/svl/source/numbers/zforscan.cxx
@@ -1319,7 +1319,7 @@ sal_Int32 ImpSvNumberformatScan::ScanType()
{
eScannedType = css::util::NumberFormat::UNDEFINED;
}
- else if ( sStrArray[i] != OUString(pFormatter->GetDateSep()) )
+ else if ( sStrArray[i] != pFormatter->GetDateSep() )
{
return nPos;
}
@@ -1358,7 +1358,7 @@ sal_Int32 ImpSvNumberformatScan::ScanType()
{
eScannedType = css::util::NumberFormat::UNDEFINED;
}
- else if ( OUString(pFormatter->GetDateSep()) != sStrArray[i] &&
+ else if ( pFormatter->GetDateSep() != sStrArray[i] &&
!pLoc->getTimeSep().equals(sStrArray[i]) )
{
return nPos;