summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-09-03 16:17:20 +0200
committerNoel Grandin <noel@peralex.com>2013-09-05 08:54:51 +0200
commit2ba105223cdf3a8df21a3368b8dfe506a8f885e8 (patch)
treeba09e05b8d97ad842ed4bd2d8ee4b410f83df184
parenta5c93041794164ecaae9e71ee1c83c187ad17aab (diff)
convert include/svx/SpellDialogChildWindow.hxx from String to OUString
Change-Id: I6fe9e996b67dc689f4fc2abc1cf63cb4af39084f
-rw-r--r--include/svx/SpellDialogChildWindow.hxx2
-rw-r--r--svx/source/dialog/SpellDialogChildWindow.cxx4
-rw-r--r--sw/source/ui/dialog/SwSpellDialogChildWindow.cxx2
-rw-r--r--sw/source/ui/inc/SwSpellDialogChildWindow.hxx2
4 files changed, 5 insertions, 5 deletions
diff --git a/include/svx/SpellDialogChildWindow.hxx b/include/svx/SpellDialogChildWindow.hxx
index 669c5d193dfa..0b401e3b4b30 100644
--- a/include/svx/SpellDialogChildWindow.hxx
+++ b/include/svx/SpellDialogChildWindow.hxx
@@ -79,7 +79,7 @@ protected:
virtual bool HasAutoCorrection();
/** This method adds a word pair to the AutoCorrection - if available
*/
- virtual void AddAutoCorrection(const String& rOld, const String& rNew, LanguageType eLanguage);
+ virtual void AddAutoCorrection(const OUString& rOld, const OUString& rNew, LanguageType eLanguage);
/** Return the sfx bindings for this child window. They are
retrieved from the dialog so they do not have to be stored in
this class as well. The bindings may be necessary to be used
diff --git a/svx/source/dialog/SpellDialogChildWindow.cxx b/svx/source/dialog/SpellDialogChildWindow.cxx
index e84eb8768ff0..7df28dbb256e 100644
--- a/svx/source/dialog/SpellDialogChildWindow.cxx
+++ b/svx/source/dialog/SpellDialogChildWindow.cxx
@@ -66,8 +66,8 @@ bool SpellDialogChildWindow::HasAutoCorrection()
}
void SpellDialogChildWindow::AddAutoCorrection(
- const String& /*rOld*/,
- const String& /*rNew*/,
+ const OUString& /*rOld*/,
+ const OUString& /*rNew*/,
LanguageType /*eLanguage*/)
{
OSL_FAIL("AutoCorrection should have been overloaded - if available");
diff --git a/sw/source/ui/dialog/SwSpellDialogChildWindow.cxx b/sw/source/ui/dialog/SwSpellDialogChildWindow.cxx
index fefcfd0dc043..82afcddb83de 100644
--- a/sw/source/ui/dialog/SwSpellDialogChildWindow.cxx
+++ b/sw/source/ui/dialog/SwSpellDialogChildWindow.cxx
@@ -467,7 +467,7 @@ void SwSpellDialogChildWindow::ApplyChangedSentence(const svx::SpellPortions& rC
}
void SwSpellDialogChildWindow::AddAutoCorrection(
- const String& rOld, const String& rNew, LanguageType eLanguage)
+ const OUString& rOld, const OUString& rNew, LanguageType eLanguage)
{
SvxAutoCorrect* pACorr = SvxAutoCorrCfg::Get().GetAutoCorrect();
pACorr->PutText( rOld, rNew, eLanguage );
diff --git a/sw/source/ui/inc/SwSpellDialogChildWindow.hxx b/sw/source/ui/inc/SwSpellDialogChildWindow.hxx
index 0d91361b9274..b4653b943b7b 100644
--- a/sw/source/ui/inc/SwSpellDialogChildWindow.hxx
+++ b/sw/source/ui/inc/SwSpellDialogChildWindow.hxx
@@ -40,7 +40,7 @@ class SwSpellDialogChildWindow
protected:
virtual svx::SpellPortions GetNextWrongSentence(bool bRecheck);
virtual void ApplyChangedSentence(const svx::SpellPortions& rChanged, bool bRecheck);
- virtual void AddAutoCorrection(const String& rOld, const String& rNew, LanguageType eLanguage);
+ virtual void AddAutoCorrection(const OUString& rOld, const OUString& rNew, LanguageType eLanguage);
virtual bool HasAutoCorrection();
virtual bool HasGrammarChecking();
virtual bool IsGrammarChecking();