Kaydet (Commit) 6b78f7fd authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1242803 Unused value

Change-Id: I674f8ef309052737d742802ca4756c8e51e4385c
üst f49e6e8b
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment