diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-09-18 13:51:35 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-09-18 15:06:21 +0100 |
commit | 163975fd413be1751b8624f8724af441433039d4 (patch) | |
tree | 3e25fe7670720b6841f2a876c23fdf103fa26ff8 /editeng/qa/unit | |
parent | comparision of STRING_NOTFOUND to OUString::indexOf (diff) | |
download | core-163975fd413be1751b8624f8724af441433039d4.tar.gz core-163975fd413be1751b8624f8724af441433039d4.zip |
convert SvxAutoCorrect::DoAutoCorrect to OUString
which makes autocorrect in the editengine work again
Change-Id: I97d56448e4abd6e563479ffee706b86cb04199ec
Diffstat (limited to 'editeng/qa/unit')
-rw-r--r-- | editeng/qa/unit/core-test.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/editeng/qa/unit/core-test.cxx b/editeng/qa/unit/core-test.cxx index e8958e13d349..57c62c364089 100644 --- a/editeng/qa/unit/core-test.cxx +++ b/editeng/qa/unit/core-test.cxx @@ -272,8 +272,8 @@ private: //fprintf(stderr, "TestAutoCorrDoc::GetPrevPara\n"); return OUString(); } - virtual sal_Bool ChgAutoCorrWord( sal_uInt16& rSttPos, - sal_uInt16 nEndPos, SvxAutoCorrect& rACorrect, + virtual bool ChgAutoCorrWord( sal_Int32& rSttPos, + sal_Int32 nEndPos, SvxAutoCorrect& rACorrect, OUString* pPara ) { //fprintf(stderr, "TestAutoCorrDoc::ChgAutoCorrWord\n"); @@ -333,10 +333,7 @@ void Test::testAutocorrect() OUString sExpected("foo"); TestAutoCorrDoc aFoo(sInput, LANGUAGE_ENGLISH_US); - String const& rInput2(reinterpret_cast<String const&>(aFoo.getResult())); - aAutoCorrect.DoAutoCorrect(aFoo, - rInput2, - sInput.getLength(), cNextChar, true); + aAutoCorrect.DoAutoCorrect(aFoo, sInput, sInput.getLength(), cNextChar, true); CPPUNIT_ASSERT_EQUAL(sExpected, aFoo.getResult()); } |