summaryrefslogtreecommitdiff
path: root/sdext/source/pdfimport/misc/pdfihelper.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sdext/source/pdfimport/misc/pdfihelper.cxx')
-rw-r--r--sdext/source/pdfimport/misc/pdfihelper.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/sdext/source/pdfimport/misc/pdfihelper.cxx b/sdext/source/pdfimport/misc/pdfihelper.cxx
index 2936a62965d8..3c6c85538158 100644
--- a/sdext/source/pdfimport/misc/pdfihelper.cxx
+++ b/sdext/source/pdfimport/misc/pdfihelper.cxx
@@ -101,10 +101,7 @@ OUString pdfi::getColorString( const rendering::ARGBColor& rCol )
OUString pdfi::getPercentString(double value)
{
- OUStringBuffer buf(32);
- buf.append(value);
- buf.append("%");
- return buf.makeStringAndClear();
+ return OUString::number(value) + "%";
}
OUString pdfi::unitMMString( double fMM )