summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2016-08-23 16:36:20 +1000
committerMike Kaganski <mike.kaganski@collabora.com>2016-08-23 06:56:08 +0000
commit850964c29c9a11aaafddaac69ffd1ae19f78ead1 (patch)
tree3258df91fd37cc74ed245540a754a18985963ee4 /vcl
parent0222a96d2406dbc04d8a6a317275f87896226995 (diff)
[loplugin]
Change-Id: Ie10af82c5c6e0cb5bb727fa95f92cc590e05b8fa Reviewed-on: https://gerrit.libreoffice.org/28342 Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> Tested-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/backendtest/VisualBackendTest.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/vcl/backendtest/VisualBackendTest.cxx b/vcl/backendtest/VisualBackendTest.cxx
index 9388ed01ee47..c944eecdffec 100644
--- a/vcl/backendtest/VisualBackendTest.cxx
+++ b/vcl/backendtest/VisualBackendTest.cxx
@@ -112,7 +112,7 @@ private:
public:
VisualBackendTestWindow()
- : WorkWindow(NULL, WB_APP | WB_STDWORK)
+ : WorkWindow(nullptr, WB_APP | WB_STDWORK)
, mnNumberOfTests(6)
, mnTest(10 * mnNumberOfTests)
, mbAnimate(mnTest % mnNumberOfTests == mnNumberOfTests - 1)
@@ -163,7 +163,7 @@ public:
}
}
- std::vector<Rectangle> setupRegions(int nPartitionsX, int nPartitionsY, int nWidth, int nHeight)
+ static std::vector<Rectangle> setupRegions(int nPartitionsX, int nPartitionsY, int nWidth, int nHeight)
{
std::vector<Rectangle> aRegions;
@@ -182,7 +182,7 @@ public:
return aRegions;
}
- void testRectangles(vcl::RenderContext& rRenderContext, int nWidth, int nHeight)
+ static void testRectangles(vcl::RenderContext& rRenderContext, int nWidth, int nHeight)
{
Rectangle aRectangle;
size_t index = 0;
@@ -238,7 +238,7 @@ public:
}
}
- void testFilledRectangles(vcl::RenderContext& rRenderContext, int nWidth, int nHeight)
+ static void testFilledRectangles(vcl::RenderContext& rRenderContext, int nWidth, int nHeight)
{
Rectangle aRectangle;
size_t index = 0;
@@ -292,7 +292,7 @@ public:
}
}
- void testLines(vcl::RenderContext& rRenderContext, int nWidth, int nHeight)
+ static void testLines(vcl::RenderContext& rRenderContext, int nWidth, int nHeight)
{
Rectangle aRectangle;
size_t index = 0;
@@ -343,7 +343,7 @@ public:
}
}
- void testBitmaps(vcl::RenderContext& rRenderContext, int nWidth, int nHeight)
+ static void testBitmaps(vcl::RenderContext& rRenderContext, int nWidth, int nHeight)
{
Rectangle aRectangle;
size_t index = 0;
@@ -440,7 +440,7 @@ public:
Point(), mpVDev->GetOutputSizePixel(),
*mpVDev.get());
rRenderContext.SetTextColor(COL_LIGHTRED);
- rRenderContext.DrawText(Point(10, 10), OUString("FPS: ") + OUString::number(int(fps)));
+ rRenderContext.DrawText(Point(10, 10), "FPS: " + OUString::number(int(fps)));
return;
}