diff options
-rw-r--r-- | editeng/qa/unit/core-test.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editeng/qa/unit/core-test.cxx b/editeng/qa/unit/core-test.cxx index a4bd7f73a6c1..0975efb9afde 100644 --- a/editeng/qa/unit/core-test.cxx +++ b/editeng/qa/unit/core-test.cxx @@ -324,8 +324,9 @@ void Test::testAutocorrect() OUString sExpected("foo"); TestAutoCorrDoc aFoo(sInput, LANGUAGE_ENGLISH_US); + String const& rInput2(reinterpret_cast<String const&>(aFoo.getResult())); aAutoCorrect.DoAutoCorrect(aFoo, - reinterpret_cast<String const&>(sInput), + rInput2, sInput.getLength(), cNextChar, true); CPPUNIT_ASSERT_EQUAL(sExpected, aFoo.getResult()); |