diff options
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/items/ctypeitm.cxx | 2 | ||||
-rw-r--r-- | svl/source/numbers/numfmuno.cxx | 6 | ||||
-rw-r--r-- | svl/source/numbers/zforscan.cxx | 4 |
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; |