editeng/qa/unit/core-test.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 4071270f7da800e58027e26f426e6e73f3abe737 Author: Stephan Bergmann <[email protected]> Date: Tue Jun 11 15:01:31 2013 +0200 Work around -Werror=strict-aliasing Change-Id: I0184488344bd11c50bddd1bb1726e0d1225aff7e (cherry picked from commit 41e5c4b0dec83cc62c33262093eed29e6ebcb340) diff --git a/editeng/qa/unit/core-test.cxx b/editeng/qa/unit/core-test.cxx index a4bd7f7..0975efb 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()); _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
