summaryrefslogtreecommitdiff
path: root/cui/source/options/optdict.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-01-25 23:01:35 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-01-26 01:33:50 +0000
commit9b5111e7f91f958e37ab25280d678afb9de4bead (patch)
tree66b279bab86a595e01ca44d0db98c59973da0b48 /cui/source/options/optdict.cxx
parentaac5cb1d3203a52966a539df729716c51d874ea4 (diff)
get rid of some XubStrings
Change-Id: Ie522330aa1470677ddcc8f9e6d76bbf4a63a9712
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;
}