summaryrefslogtreecommitdiff
path: root/cui/source/options/optdict.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cui/source/options/optdict.cxx')
-rw-r--r--cui/source/options/optdict.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/cui/source/options/optdict.cxx b/cui/source/options/optdict.cxx
index e8d3f4850ae0..4f67d05137bc 100644
--- a/cui/source/options/optdict.cxx
+++ b/cui/source/options/optdict.cxx
@@ -590,13 +590,13 @@ IMPL_LINK(SvxEditDictionaryDialog, NewDelHdl, PushButton*, pBtn)
if(pBtn == &aNewReplacePB || aNewReplacePB.IsEnabled())
{
SvTreeListEntry* _pEntry = aWordsLB.FirstSelected();
- XubString aNewWord(aWordED.GetText());
- String sEntry(aNewWord);
- XubString aReplaceStr(aReplaceED.GetText());
+ OUString aNewWord(aWordED.GetText());
+ OUString sEntry(aNewWord);
+ OUString aReplaceStr(aReplaceED.GetText());
sal_Int16 nAddRes = DIC_ERR_UNKNOWN;
sal_uInt16 nPos = aAllDictsLB.GetSelectEntryPos();
- if ( nPos != LISTBOX_ENTRY_NOTFOUND && aNewWord.Len() > 0)
+ if ( nPos != LISTBOX_ENTRY_NOTFOUND && !aNewWord.isEmpty())
{
DBG_ASSERT(nPos < aDics.getLength(), "invalid dictionary index");
Reference< XDictionary > xDic( aDics.getConstArray()[ nPos ], UNO_QUERY );
@@ -625,7 +625,7 @@ IMPL_LINK(SvxEditDictionaryDialog, NewDelHdl, PushButton*, pBtn)
if (DIC_ERR_NONE != nAddRes)
SvxDicError( this, nAddRes );
- if(DIC_ERR_NONE == nAddRes && sEntry.Len())
+ if(DIC_ERR_NONE == nAddRes && !sEntry.isEmpty())
{
// insert new entry in list-box etc...
@@ -634,7 +634,7 @@ IMPL_LINK(SvxEditDictionaryDialog, NewDelHdl, PushButton*, pBtn)
if(aReplaceFT.IsVisible())
{
- sEntry += '\t';
+ sEntry += "\t";
sEntry += aReplaceStr;
}