From f2e11a7048e0cc8c2b0b8da464484c2fd18d84a4 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Sun, 27 Dec 2020 22:14:28 +0100 Subject: Replace macro with function Change-Id: I2b2bf3154093a354b80d6235fc61b78195fcab15 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108384 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- chart2/qa/extras/chart2dump/chart2dump.cxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'chart2') 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(); } -- cgit