[Libreoffice-commits] core.git: editeng/qa

Stephan Bergmann sbergman at redhat.com
Tue Jun 11 06:02:06 PDT 2013


 editeng/qa/unit/core-test.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 41e5c4b0dec83cc62c33262093eed29e6ebcb340
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Jun 11 15:01:31 2013 +0200

    Work around -Werror=strict-aliasing
    
    Change-Id: I0184488344bd11c50bddd1bb1726e0d1225aff7e

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());


More information about the Libreoffice-commits mailing list