summaryrefslogtreecommitdiff
path: root/sdext
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-12-13 11:10:10 +0200
committerNoel Grandin <noel@peralex.com>2013-12-17 11:49:04 +0200
commit8548abbac5139569818516ca198c8086f4d1fd1f (patch)
tree5bc09f193859dd63fbf2e3e602ab3b6667904e8c /sdext
parent909b27df488f3c84ab8e5be9a7513a83b7c4b0c1 (diff)
Remove unnecessary use of OUString constructor in OUStringBuffer::append calls
Convert code like aStrBuffer.append(OUString(" AS ")); to aStrBuffer.append(" AS "); Change-Id: I8c1884b5a875f40f0b5e511b6ef38c6c8eeee656
Diffstat (limited to 'sdext')
-rw-r--r--sdext/source/minimizer/optimizerdialogcontrols.cxx2
-rw-r--r--sdext/source/minimizer/pppoptimizerdialog.cxx4
-rw-r--r--sdext/source/pdfimport/test/tests.cxx2
3 files changed, 4 insertions, 4 deletions
diff --git a/sdext/source/minimizer/optimizerdialogcontrols.cxx b/sdext/source/minimizer/optimizerdialogcontrols.cxx
index 3e5d95e50c71..86aae05b244f 100644
--- a/sdext/source/minimizer/optimizerdialogcontrols.cxx
+++ b/sdext/source/minimizer/optimizerdialogcontrols.cxx
@@ -597,7 +597,7 @@ static OUString ImpValueOfInMB( const sal_Int64& rVal, sal_Unicode nSeparator =
aVal.setLength( nX + 2 );
aVal[nX] = nSeparator;
}
- aVal.append( OUString(" MB") );
+ aVal.append( " MB" );
return aVal.makeStringAndClear();
}
diff --git a/sdext/source/minimizer/pppoptimizerdialog.cxx b/sdext/source/minimizer/pppoptimizerdialog.cxx
index 1cfc874a88fa..64aac3e0211e 100644
--- a/sdext/source/minimizer/pppoptimizerdialog.cxx
+++ b/sdext/source/minimizer/pppoptimizerdialog.cxx
@@ -144,9 +144,9 @@ void SAL_CALL PPPOptimizerDialog::dispatch( const URL& rURL,
{
OUStringBuffer sBuf( OUString("Your Presentation has been minimized from:") );
sBuf.append( OUString::number( nFileSizeSource >> 10 ) );
- sBuf.append( OUString("KB to ") );
+ sBuf.append( "KB to " );
sBuf.append( OUString::number( nFileSizeDest >> 10 ) );
- sBuf.append( OUString("KB.") );
+ sBuf.append( "KB." );
OUString sResult( sBuf.makeStringAndClear() );
SAL_INFO("sdext.minimizer", sResult );
}
diff --git a/sdext/source/pdfimport/test/tests.cxx b/sdext/source/pdfimport/test/tests.cxx
index a1cb3176507e..93c3a53c8b71 100644
--- a/sdext/source/pdfimport/test/tests.cxx
+++ b/sdext/source/pdfimport/test/tests.cxx
@@ -353,7 +353,7 @@ namespace
virtual void endText()
{
- m_aTextOut.append( OUString("\n") );
+ m_aTextOut.append( "\n" );
}
virtual void drawMask(const uno::Sequence<beans::PropertyValue>& xBitmap,