summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-10-15 12:28:31 +0200
committerNoel Grandin <noel@peralex.com>2015-10-15 12:29:01 +0200
commit0e8a40e8b8c883611b6d34e47dc6e33ba60e0f91 (patch)
tree92e49014bb9b368309c98d85dcfbd2f673e23d54 /editeng
parentcfc7307a23eed561152c1b016cd0ec22bc7af145 (diff)
calling IsSet() before Call() on Link<> is unnecessary
the Call() already does a check Found with: git grep -A 1 -w 'IsSet()' | grep -B 1 '.Call(' | grep ':' | cut -d ':' -f 1 Change-Id: Ia7248f5d62640b75f705e539c3d1183e39c0d847
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/outliner/outlvw.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/editeng/source/outliner/outlvw.cxx b/editeng/source/outliner/outlvw.cxx
index 902d6a0f518a..c14fbaf7a264 100644
--- a/editeng/source/outliner/outlvw.cxx
+++ b/editeng/source/outliner/outlvw.cxx
@@ -678,8 +678,7 @@ void OutlinerView::Cut()
if ( !ImpCalcSelectedPages( false ) || pOwner->ImpCanDeleteSelectedPages( this ) ) {
pEditView->Cut();
// Chaining handling
- if (aEndCutPasteLink.IsSet())
- aEndCutPasteLink.Call(NULL);
+ aEndCutPasteLink.Call(NULL);
}
}
@@ -712,8 +711,7 @@ void OutlinerView::PasteSpecial()
// Chaining handling
// NOTE: We need to do this last because it pEditView may be deleted if a switch of box occurs
- if (aEndCutPasteLink.IsSet())
- aEndCutPasteLink.Call(NULL);
+ aEndCutPasteLink.Call(NULL);
}
}