summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-10-03 09:42:48 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-10-03 16:30:28 +0100
commit6b78f7fd8503451b82d659f1eca564f772d1b363 (patch)
treebe2a2a61ae263bb41e37688f8dd8b5b63e61271e /cui
parentf49e6e8b6062b5d2718764e320be8b8d052e60d0 (diff)
coverity#1242803 Unused value
Change-Id: I674f8ef309052737d742802ca4756c8e51e4385c
Diffstat (limited to 'cui')
-rw-r--r--cui/source/options/optdict.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/cui/source/options/optdict.cxx b/cui/source/options/optdict.cxx
index a214b5952507..e936a87d98bb 100644
--- a/cui/source/options/optdict.cxx
+++ b/cui/source/options/optdict.cxx
@@ -675,7 +675,6 @@ IMPL_LINK(SvxEditDictionaryDialog, NewDelHdl, PushButton*, pBtn)
IMPL_LINK(SvxEditDictionaryDialog, ModifyHdl, Edit*, pEdt)
{
- SvTreeListEntry* pFirstSel = pWordsLB->FirstSelected();
OUString rEntry = pEdt->GetText();
sal_Int32 nWordLen = rEntry.getLength();
@@ -705,7 +704,6 @@ IMPL_LINK(SvxEditDictionaryDialog, ModifyHdl, Edit*, pEdt)
bDoNothing=true;
pWordsLB->SetCurEntry(pEntry);
bDoNothing=false;
- pFirstSel = pEntry;
pReplaceED->SetText(pWordsLB->GetEntryText(pEntry, 1));
if (CDE_SIMILAR == eCmpRes)
@@ -733,7 +731,6 @@ IMPL_LINK(SvxEditDictionaryDialog, ModifyHdl, Edit*, pEdt)
if(!bFound)
{
pWordsLB->SelectAll(false);
- pFirstSel = 0;
aNewReplaceText = sNew;
bEnableNewReplace = true;
@@ -752,6 +749,7 @@ IMPL_LINK(SvxEditDictionaryDialog, ModifyHdl, Edit*, pEdt)
{
OUString aReplaceText;
OUString aWordText;
+ SvTreeListEntry* pFirstSel = pWordsLB->FirstSelected();
if (pFirstSel) // a pWordsLB entry is selected
{
aWordText = pWordsLB->GetEntryText( pFirstSel, 0 );