diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-07-20 12:31:57 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-07-20 21:32:26 +0200 |
commit | 8e8d3f4db94e0069a1d84378d295268f5037b016 (patch) | |
tree | c06b2ec6e696531799bd709be18a7d4d5a4aec26 /sw/qa | |
parent | a11a06d38e145139a2a1c7d51510b4fc2222c3e1 (diff) |
EditTextObject: use virtual interface instead of pimpl
Makes it simpler, and avoids extra allocations
Change-Id: I301f628a2898f6421242808cbf8ce36c5acf9b0b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119241
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sw/qa')
-rw-r--r-- | sw/qa/extras/layout/layout.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/qa/extras/layout/layout.cxx b/sw/qa/extras/layout/layout.cxx index 8dd576987d9a..5c8d8201df95 100644 --- a/sw/qa/extras/layout/layout.cxx +++ b/sw/qa/extras/layout/layout.cxx @@ -3594,7 +3594,7 @@ CPPUNIT_TEST_FIXTURE(SwLayoutWriter, testTdf137185) CPPUNIT_ASSERT_EQUAL(OUString("Align me!"), xTextFrame->getText()->getString()); SdrTextObj* pTextObj = dynamic_cast<SdrTextObj*>(pObj); CPPUNIT_ASSERT(pTextObj); - auto aOutStr = pTextObj->GetOutlinerParaObject()->GetTextObject(); + const auto& aOutStr = pTextObj->GetOutlinerParaObject()->GetTextObject(); CPPUNIT_ASSERT(aOutStr.GetText(0).isEmpty()); // Before the patch it failed, because the text appeared 2 times on each other. |