summaryrefslogtreecommitdiff
path: root/sw/qa/core
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2018-11-07 16:14:19 +0100
committerMichael Stahl <Michael.Stahl@cib.de>2018-11-15 15:10:06 +0100
commit43a7231c96b5d132e8cc349553ff6efaba9d5ed0 (patch)
tree0c276f06148863cc9a0d894e287bb2ab65802fd0 /sw/qa/core
parenta25e7ac89e456f57f2b9701b04b7a4733aaf6f57 (diff)
sw_redlinehide_3: add second result to SwChapterField
Now it can store both the result for Show as well as for Hide mode. Change-Id: I15a14b76a96ef77683cd63039b1a8f5e1e94e4c9
Diffstat (limited to 'sw/qa/core')
-rw-r--r--sw/qa/core/test_ToxTextGenerator.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/sw/qa/core/test_ToxTextGenerator.cxx b/sw/qa/core/test_ToxTextGenerator.cxx
index 5bd25a844665..3ddc9fef6f80 100644
--- a/sw/qa/core/test_ToxTextGenerator.cxx
+++ b/sw/qa/core/test_ToxTextGenerator.cxx
@@ -141,10 +141,10 @@ ToxTextGeneratorTest::ChapterNumberWithoutTextIsGeneratedForNoprepstTitle()
SwForm form;
ToxTextGeneratorWithMockedChapterField ttg(form);
// set all values to make sure they are not used
- ttg.GetChapterField().sNumber = "1";
- ttg.GetChapterField().sPre = "PRE";
- ttg.GetChapterField().sPost = "POST";
- ttg.GetChapterField().sTitle = "TITLE";
+ ttg.GetChapterField().m_State.sNumber = "1";
+ ttg.GetChapterField().m_State.sPre = "PRE";
+ ttg.GetChapterField().m_State.sPost = "POST";
+ ttg.GetChapterField().m_State.sTitle = "TITLE";
SwFormToken token(TOKEN_CHAPTER_INFO);
token.nChapterFormat = CF_NUM_NOPREPST_TITLE;
@@ -167,10 +167,10 @@ ToxTextGeneratorTest::ChapterNumberWithTitleIsGeneratedForNumberNoPrepst()
SwForm form;
ToxTextGeneratorWithMockedChapterField ttg(form);
// set all values to make sure they are not used
- ttg.GetChapterField().sNumber = "5";
- ttg.GetChapterField().sPre = "PRE";
- ttg.GetChapterField().sPost = "POST";
- ttg.GetChapterField().sTitle = "myTitle";
+ ttg.GetChapterField().m_State.sNumber = "5";
+ ttg.GetChapterField().m_State.sPre = "PRE";
+ ttg.GetChapterField().m_State.sPost = "POST";
+ ttg.GetChapterField().m_State.sTitle = "myTitle";
SwFormToken token(TOKEN_CHAPTER_INFO);
token.nChapterFormat = CF_NUMBER_NOPREPST;