[PATCH] cppcheck: remove unused variable 'pEditSel'
Thomas Arnhold
thomas at arnhold.org
Sun Jan 16 14:25:01 PST 2011
---
sc/source/ui/view/viewfun4.cxx | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/sc/source/ui/view/viewfun4.cxx b/sc/source/ui/view/viewfun4.cxx
index fa5a904..eb12b25 100644
--- a/sc/source/ui/view/viewfun4.cxx
+++ b/sc/source/ui/view/viewfun4.cxx
@@ -478,14 +478,12 @@ void ScViewFunc::DoSheetConversion( const ScConversionParam& rConvParam, BOOL bR
ScMarkData& rMark = rViewData.GetMarkData();
ScSplitPos eWhich = rViewData.GetActivePart();
EditView* pEditView = NULL;
- ESelection* pEditSel = NULL;
BOOL bIsEditMode = rViewData.HasEditView(eWhich);
if (bRecord && !pDoc->IsUndoEnabled())
bRecord = FALSE;
if (bIsEditMode) // Edit-Mode aktiv
{
rViewData.GetEditView(eWhich, pEditView, nCol, nRow);
- pEditSel = new ESelection(pEditView->GetSelection());
SC_MOD()->InputEnterHandler();
}
else
@@ -505,7 +503,6 @@ void ScViewFunc::DoSheetConversion( const ScConversionParam& rConvParam, BOOL bR
if (!aTester.IsEditable())
{
ErrorMessage(aTester.GetMessageId());
- delete pEditSel;
return;
}
}
--
1.7.3.5
--------------080604050900010603030201
Content-Type: text/plain;
name="0004-cppcheck:-close-bracket.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="0004-cppcheck:-close-bracket.patch"
More information about the LibreOffice
mailing list