summaryrefslogtreecommitdiff
path: root/vcl/workben/svptest.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/workben/svptest.cxx')
-rw-r--r--vcl/workben/svptest.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/vcl/workben/svptest.cxx b/vcl/workben/svptest.cxx
index a79cda4df507..72ff179821a8 100644
--- a/vcl/workben/svptest.cxx
+++ b/vcl/workben/svptest.cxx
@@ -238,13 +238,11 @@ void MyWin::Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle& rR
sal_uInt8 nBlue = (i << 2) & 0xC0;
rRenderContext.SetTextColor(Color(nRed, nGreen, nBlue));
- OUStringBuffer aPrintText(1024);
-
- aPrintText.append( "SVP test program" );
+ OUString aPrintText = "SVP test program";
rRenderContext.DrawText(tools::Rectangle(Point((aPaperSize.Width() - 4000) / 2, 2000),
Size(aPaperSize.Width() - 2100, aPaperSize.Height() - 4000)),
- aPrintText.makeStringAndClear(),
+ aPrintText,
DrawTextFlags::MultiLine);
}