[Libreoffice-commits] core.git: vcl/backendtest

Mike Kaganski mike.kaganski at collabora.com
Tue Aug 23 06:56:31 UTC 2016


 vcl/backendtest/VisualBackendTest.cxx |   14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

New commits:
commit 850964c29c9a11aaafddaac69ffd1ae19f78ead1
Author: Mike Kaganski <mike.kaganski at collabora.com>
Date:   Tue Aug 23 16:36:20 2016 +1000

    [loplugin]
    
    Change-Id: Ie10af82c5c6e0cb5bb727fa95f92cc590e05b8fa
    Reviewed-on: https://gerrit.libreoffice.org/28342
    Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>
    Tested-by: Mike Kaganski <mike.kaganski at collabora.com>

diff --git a/vcl/backendtest/VisualBackendTest.cxx b/vcl/backendtest/VisualBackendTest.cxx
index 9388ed0..c944eec 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;
         }
 


More information about the Libreoffice-commits mailing list