diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2023-11-20 07:31:17 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2023-11-20 10:00:14 +0100 |
commit | 46617d95f409c743ef9d60d2f6309200c44cd79f (patch) | |
tree | d7c8cfadfba1fc425ace1869366e98beccab673b /canvas/workben | |
parent | 730a704f7fa78ef340925eea163525a7ae5be224 (diff) |
Extended loplugin:ostr: canvas
Change-Id: I7c5ee1eb15a4464c9dfc2e292df3e6adf71d3956
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159726
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'canvas/workben')
-rw-r--r-- | canvas/workben/canvasdemo.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/canvas/workben/canvasdemo.cxx b/canvas/workben/canvasdemo.cxx index eb9356a04926..792fc49c7943 100644 --- a/canvas/workben/canvasdemo.cxx +++ b/canvas/workben/canvasdemo.cxx @@ -271,7 +271,7 @@ class DemoRenderer { rendering::RenderState maOldRenderState = maRenderState; // push - drawTitle( OString( "Rectangles" ) ); + drawTitle( "Rectangles"_ostr ); drawRect( tools::Rectangle( 20, 30, 70, 60 ), maColorRed, 8 ); // color mediumseagreen, stipple fill, outline black @@ -287,7 +287,7 @@ class DemoRenderer rendering::RenderState maOldRenderState = maRenderState; // push translate( maBox.Width(), 0.0 ); - drawTitle( OString( "Ellipses" ) ); + drawTitle( "Ellipses"_ostr ); const basegfx::B2DPoint aCenter( maBox.Width()*.5, maBox.Height()*.5 ); @@ -318,11 +318,11 @@ class DemoRenderer rendering::RenderState maOldRenderState = maRenderState; // push translate( maBox.Width() * 2.0, 0.0 ); - drawTitle( OString( "Text" ) ); + drawTitle( "Text"_ostr ); translate( 0.0, maBox.Height() * .5 ); - drawTitle( OString( "This is lame" ) ); + drawTitle( "This is lame"_ostr ); maRenderState = maOldRenderState; // pop } @@ -332,7 +332,7 @@ class DemoRenderer rendering::RenderState maOldRenderState = maRenderState; // push translate( 0.0, maBox.Height() ); - drawTitle( OString( "Images" ) ); + drawTitle( "Images"_ostr ); uno::Reference< rendering::XBitmap > xBitmap(mxCanvas, uno::UNO_QUERY); @@ -365,7 +365,7 @@ class DemoRenderer rendering::RenderState maOldRenderState = maRenderState; // push translate( maBox.Width(), maBox.Height() ); - drawTitle( OString( "Lines" ) ); + drawTitle( "Lines"_ostr ); drawPolishDiamond( 70.0, 80.0 ); drawHilbert( 140.0, 140.0 ); @@ -378,7 +378,7 @@ class DemoRenderer rendering::RenderState maOldRenderState = maRenderState; // push translate( maBox.Width() * 2.0, maBox.Height() ); - drawTitle( OString( "Curves" ) ); + drawTitle( "Curves"_ostr ); translate( maBox.Width() * .5, maBox.Height() * .5 ); @@ -426,7 +426,7 @@ class DemoRenderer rendering::RenderState maOldRenderState = maRenderState; // push translate( 0.0, maBox.Height() * 2.0 ); - drawTitle( OString( "Arcs" ) ); + drawTitle( "Arcs"_ostr ); //begin hacks @@ -504,7 +504,7 @@ class DemoRenderer rendering::RenderState maOldRenderState = maRenderState; // push translate( maBox.Width() * 1.0, maBox.Height() * 2.0 ); - drawTitle( OString( "Polygons" ) ); + drawTitle( "Polygons"_ostr ); int sides= 3; for (int i= 1; i <= 4; i++) @@ -521,7 +521,7 @@ class DemoRenderer rendering::RenderState maOldRenderState = maRenderState; // push translate( maBox.Width() * 2.0, maBox.Height() * 2.0 ); - drawTitle( OString( "Widgets" ) ); + drawTitle( "Widgets"_ostr ); maRenderState = maOldRenderState; // pop } |