summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-06-11 15:01:31 +0200
committerEike Rathke <erack@redhat.com>2013-06-13 22:37:53 +0200
commit4071270f7da800e58027e26f426e6e73f3abe737 (patch)
treea0ee33d7008925798f9c7d07cfa5aab0350d5736
parent5cc9305559e716d7b05102582b7f38a8ee904db2 (diff)
Work around -Werror=strict-aliasing
Change-Id: I0184488344bd11c50bddd1bb1726e0d1225aff7e (cherry picked from commit 41e5c4b0dec83cc62c33262093eed29e6ebcb340)
-rw-r--r--editeng/qa/unit/core-test.cxx3
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());