Kaydet (Commit) 8f3a6129 authored tarafından jailletc36's avatar jailletc36 Kaydeden (comit) Norbert Thiebaud

Remove useless function calls.

nPos has already been computed the 3 lines above. No need to recompute it.

Change-Id: Iad739d6fffd2c40cc633789edfe88d13e87dd28b
Signed-off-by: 's avatarjailletc36 <christophe.jaillet@wanadoo.fr>
Reviewed-on: https://gerrit.libreoffice.org/2015Reviewed-by: 's avatarTomáš Chvátal <tchvatal@suse.cz>
Tested-by: 's avatarTomáš Chvátal <tchvatal@suse.cz>
Reviewed-by: 's avatarNorbert Thiebaud <nthiebaud@gmail.com>
üst 38bdcbbe
......@@ -89,7 +89,6 @@ sal_Bool ScRedlineOptionsTabPage::FillItemSet( SfxItemSet& /* rSet */ )
nPos = aContentColorLB.GetSelectEntryPos();
if (nPos != LISTBOX_ENTRY_NOTFOUND)
{
nPos = aContentColorLB.GetSelectEntryPos();
if (nPos!=0)
nNew= aContentColorLB.GetEntryColor(nPos).GetColor();
else
......@@ -101,7 +100,6 @@ sal_Bool ScRedlineOptionsTabPage::FillItemSet( SfxItemSet& /* rSet */ )
nPos = aMoveColorLB.GetSelectEntryPos();
if (nPos != LISTBOX_ENTRY_NOTFOUND)
{
nPos = aMoveColorLB.GetSelectEntryPos();
if (nPos!=0)
nNew= aMoveColorLB.GetEntryColor(nPos).GetColor();
else
......@@ -113,7 +111,6 @@ sal_Bool ScRedlineOptionsTabPage::FillItemSet( SfxItemSet& /* rSet */ )
nPos = aInsertColorLB.GetSelectEntryPos();
if (nPos != LISTBOX_ENTRY_NOTFOUND)
{
nPos = aInsertColorLB.GetSelectEntryPos();
if (nPos!=0)
nNew= aInsertColorLB.GetEntryColor(nPos).GetColor();
else
......@@ -125,7 +122,6 @@ sal_Bool ScRedlineOptionsTabPage::FillItemSet( SfxItemSet& /* rSet */ )
nPos = aRemoveColorLB.GetSelectEntryPos();
if (nPos != LISTBOX_ENTRY_NOTFOUND)
{
nPos = aRemoveColorLB.GetSelectEntryPos();
if (nPos!=0)
nNew= aRemoveColorLB.GetEntryColor(nPos).GetColor();
else
......
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