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) ...@@ -675,7 +675,6 @@ IMPL_LINK(SvxEditDictionaryDialog, NewDelHdl, PushButton*, pBtn)
IMPL_LINK(SvxEditDictionaryDialog, ModifyHdl, Edit*, pEdt) IMPL_LINK(SvxEditDictionaryDialog, ModifyHdl, Edit*, pEdt)
{ {
SvTreeListEntry* pFirstSel = pWordsLB->FirstSelected();
OUString rEntry = pEdt->GetText(); OUString rEntry = pEdt->GetText();
sal_Int32 nWordLen = rEntry.getLength(); sal_Int32 nWordLen = rEntry.getLength();
...@@ -705,7 +704,6 @@ IMPL_LINK(SvxEditDictionaryDialog, ModifyHdl, Edit*, pEdt) ...@@ -705,7 +704,6 @@ IMPL_LINK(SvxEditDictionaryDialog, ModifyHdl, Edit*, pEdt)
bDoNothing=true; bDoNothing=true;
pWordsLB->SetCurEntry(pEntry); pWordsLB->SetCurEntry(pEntry);
bDoNothing=false; bDoNothing=false;
pFirstSel = pEntry;
pReplaceED->SetText(pWordsLB->GetEntryText(pEntry, 1)); pReplaceED->SetText(pWordsLB->GetEntryText(pEntry, 1));
if (CDE_SIMILAR == eCmpRes) if (CDE_SIMILAR == eCmpRes)
...@@ -733,7 +731,6 @@ IMPL_LINK(SvxEditDictionaryDialog, ModifyHdl, Edit*, pEdt) ...@@ -733,7 +731,6 @@ IMPL_LINK(SvxEditDictionaryDialog, ModifyHdl, Edit*, pEdt)
if(!bFound) if(!bFound)
{ {
pWordsLB->SelectAll(false); pWordsLB->SelectAll(false);
pFirstSel = 0;
aNewReplaceText = sNew; aNewReplaceText = sNew;
bEnableNewReplace = true; bEnableNewReplace = true;
...@@ -752,6 +749,7 @@ IMPL_LINK(SvxEditDictionaryDialog, ModifyHdl, Edit*, pEdt) ...@@ -752,6 +749,7 @@ IMPL_LINK(SvxEditDictionaryDialog, ModifyHdl, Edit*, pEdt)
{ {
OUString aReplaceText; OUString aReplaceText;
OUString aWordText; OUString aWordText;
SvTreeListEntry* pFirstSel = pWordsLB->FirstSelected();
if (pFirstSel) // a pWordsLB entry is selected if (pFirstSel) // a pWordsLB entry is selected
{ {
aWordText = pWordsLB->GetEntryText( pFirstSel, 0 ); 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