summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-06-11 15:01:31 +0200
committerStephan Bergmann <sbergman@redhat.com>2013-06-11 15:01:43 +0200
commit41e5c4b0dec83cc62c33262093eed29e6ebcb340 (patch)
treeeff1d1fd86ba26f5dbb7ea1b4378960d9de7b5c1 /editeng
parent40a5fd4aa0eab1940fcbde4ff26342a5af0222ee (diff)
Work around -Werror=strict-aliasing
Change-Id: I0184488344bd11c50bddd1bb1726e0d1225aff7e
Diffstat (limited to 'editeng')
-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());