sd/qa/unit/sdmodeltestbase.hxx  |   29 ++++++++++++-----------------
 solenv/clang-format/excludelist |    1 -
 2 files changed, 12 insertions(+), 18 deletions(-)

New commits:
commit 753d1aa82b0c76e7f5e160c935ba2ca84b1c9e2c
Author:     Xisco Fauli <[email protected]>
AuthorDate: Mon Oct 31 17:59:36 2022 +0100
Commit:     Xisco Fauli <[email protected]>
CommitDate: Mon Oct 31 21:35:46 2022 +0100

    sdmodeltestbase.hxx: use clang-format
    
    Now that the file has shrunk in size
    
    Change-Id: I6e9e245cd332c225eacc7ceca1be6d533bf58187
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142081
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <[email protected]>

diff --git a/sd/qa/unit/sdmodeltestbase.hxx b/sd/qa/unit/sdmodeltestbase.hxx
index a1c54f43cfaf..00d4eb317554 100644
--- a/sd/qa/unit/sdmodeltestbase.hxx
+++ b/sd/qa/unit/sdmodeltestbase.hxx
@@ -168,36 +168,31 @@ public:
 
 CPPUNIT_NS_BEGIN
 
-template<> struct assertion_traits<Color>
+template <> struct assertion_traits<Color>
 {
-    static bool equal( const Color& c1, const Color& c2 )
-    {
-        return c1 == c2;
-    }
+    static bool equal(const Color& c1, const Color& c2) { return c1 == c2; }
 
-    static std::string toString( const Color& c )
+    static std::string toString(const Color& c)
     {
         OStringStream ost;
         ost << "Color: R:" << static_cast<int>(c.GetRed())
-              << " G:" << static_cast<int>(c.GetGreen())
-              << " B:" << static_cast<int>(c.GetBlue())
-              << " A:" << static_cast<int>(255 - c.GetAlpha());
+            << " G:" << static_cast<int>(c.GetGreen()) << " B:" << 
static_cast<int>(c.GetBlue())
+            << " A:" << static_cast<int>(255 - c.GetAlpha());
         return ost.str();
     }
 };
 
-template<> struct assertion_traits<tools::Rectangle>
+template <> struct assertion_traits<tools::Rectangle>
 {
-    static bool equal( const tools::Rectangle& r1, const tools::Rectangle& r2 )
-    {
-        return r1 == r2;
-    }
+    static bool equal(const tools::Rectangle& r1, const tools::Rectangle& r2) 
{ return r1 == r2; }
 
-    static std::string toString( const tools::Rectangle& r)
+    static std::string toString(const tools::Rectangle& r)
     {
         OStringStream ost;
-        ost << "Rect P: [" << r.Top() << ", " << r.Left() << "] "
-            "S: [" << r.GetWidth() << ", " << r.GetHeight() << "]";
+        ost << "Rect P: [" << r.Top() << ", " << r.Left()
+            << "] "
+               "S: ["
+            << r.GetWidth() << ", " << r.GetHeight() << "]";
         return ost.str();
     }
 };
diff --git a/solenv/clang-format/excludelist b/solenv/clang-format/excludelist
index d3807f60c5a1..65a3580e94fb 100644
--- a/solenv/clang-format/excludelist
+++ b/solenv/clang-format/excludelist
@@ -9487,7 +9487,6 @@ sd/qa/unit/SVGExportTests.cxx
 sd/qa/unit/activex-controls-tests.cxx
 sd/qa/unit/dialogs-test.cxx
 sd/qa/unit/filters-test.cxx
-sd/qa/unit/sdmodeltestbase.hxx
 sd/qa/unit/tiledrendering/tiledrendering.cxx
 sd/qa/unit/uimpress.cxx
 sd/source/core/CustomAnimationCloner.cxx

Reply via email to