summaryrefslogtreecommitdiff
path: root/sw/inc/swmodule.hxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2022-06-01 11:28:49 +0200
committerMiklos Vajna <vmiklos@collabora.com>2022-06-01 13:27:21 +0200
commit2de53e222fa9126422ff69dde3c585349958d494 (patch)
tree3774e3c0808454c85c671c5fbc28e0cefb2eb635 /sw/inc/swmodule.hxx
parentaf1147f4a6fd18a44dcd9209abe5d91bb74840c5 (diff)
CppunitTest_sw_tiledrendering: use CPPUNIT_TEST_FIXTURE()
Which changes the order of the tests in the suite, so testRedlineColors runs later and the global list of redline authors now contains unexpected entries, leading to an assertion failure. Fix this by clearing the redline author list at the start of each test. Change-Id: Ifffe079eb83cd3184c962ea2e69505bd518a52bf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135229 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'sw/inc/swmodule.hxx')
-rw-r--r--sw/inc/swmodule.hxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/inc/swmodule.hxx b/sw/inc/swmodule.hxx
index 06cafc912baf..e3bc91614c08 100644
--- a/sw/inc/swmodule.hxx
+++ b/sw/inc/swmodule.hxx
@@ -198,6 +198,7 @@ public:
// Redlining.
std::size_t GetRedlineAuthor();
OUString const & GetRedlineAuthor(std::size_t nPos);
+ void ClearRedlineAuthors();
/// See SwXTextDocument::getTrackedChangeAuthors().
void GetRedlineAuthorInfo(tools::JsonWriter& rJsonWriter);
std::size_t InsertRedlineAuthor(const OUString& rAuthor);