chart2/qa/extras/chart2dump/chart2dump.cxx |   14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

New commits:
commit f2e11a7048e0cc8c2b0b8da464484c2fd18d84a4
Author:     Stephan Bergmann <[email protected]>
AuthorDate: Sun Dec 27 22:14:28 2020 +0100
Commit:     Stephan Bergmann <[email protected]>
CommitDate: Mon Dec 28 08:52:10 2020 +0100

    Replace macro with function
    
    Change-Id: I2b2bf3154093a354b80d6235fc61b78195fcab15
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108384
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <[email protected]>

diff --git a/chart2/qa/extras/chart2dump/chart2dump.cxx 
b/chart2/qa/extras/chart2dump/chart2dump.cxx
index a3ad005ea0e7..77739fb67034 100644
--- a/chart2/qa/extras/chart2dump/chart2dump.cxx
+++ b/chart2/qa/extras/chart2dump/chart2dump.cxx
@@ -84,13 +84,6 @@
         } \
     }
 
-#define CPPUNIT_DUMP_ASSERT_NOTE(Note) \
-    if(isInDumpMode()) \
-        writeNote(Note); \
-    else \
-        readNote(Note);\
-
-
 class Chart2DumpTest : public ChartTest, public XmlTestTools
 {
 protected:
@@ -103,6 +96,13 @@ protected:
     {
     }
 
+    void CPPUNIT_DUMP_ASSERT_NOTE(OUString const & Note) {
+        if(isInDumpMode())
+            writeNote(Note);
+        else
+            readNote(Note);
+    }
+
     bool isInDumpMode () const {return m_bDumpMode;}
 
     virtual OUString getTestName() { return OUString(); }
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to