diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-12-27 22:14:28 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-12-28 08:52:10 +0100 |
commit | f2e11a7048e0cc8c2b0b8da464484c2fd18d84a4 (patch) | |
tree | 5ad47466cbb81cf110b47d93a5ffed71d7cca731 /chart2 | |
parent | 97042c3ba4a1fe1da5db45a47700100b709c90a1 (diff) |
Replace macro with function
Change-Id: I2b2bf3154093a354b80d6235fc61b78195fcab15
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108384
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/qa/extras/chart2dump/chart2dump.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
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(); } |