diff options
author | RĂ¼diger Timm <rt@openoffice.org> | 2003-12-01 17:02:53 +0000 |
---|---|---|
committer | RĂ¼diger Timm <rt@openoffice.org> | 2003-12-01 17:02:53 +0000 |
commit | ac6c2353e3b1e3e6eb4a6b80832a8523c2f8f7c6 (patch) | |
tree | 6bc755bef842ae0371837724e7e8f74187dd0e9c /dbaccess/source/ui/tabledesign | |
parent | a41f70c372dd68c114f14bf1de0bbe7c46c78f68 (diff) |
INTEGRATION: CWS ooo20031110 (1.9.54); FILE MERGED
2003/11/13 09:51:14 waratah 1.9.54.1: #i22301# remove all for scope non-compliant code
Diffstat (limited to 'dbaccess/source/ui/tabledesign')
-rw-r--r-- | dbaccess/source/ui/tabledesign/TableUndo.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/dbaccess/source/ui/tabledesign/TableUndo.cxx b/dbaccess/source/ui/tabledesign/TableUndo.cxx index 5a62d274663a..9a8d09779579 100644 --- a/dbaccess/source/ui/tabledesign/TableUndo.cxx +++ b/dbaccess/source/ui/tabledesign/TableUndo.cxx @@ -2,9 +2,9 @@ * * $RCSfile: TableUndo.cxx,v $ * - * $Revision: 1.9 $ + * $Revision: 1.10 $ * - * last change: $Author: vg $ $Date: 2003-06-06 10:49:25 $ + * last change: $Author: rt $ $Date: 2003-12-01 18:02:53 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -486,10 +486,11 @@ void OPrimKeyUndoAct::Undo() { ::std::vector<OTableRow*>* pRowList = pTabEdCtrl->GetRowList(); OTableRow* pRow = NULL; + long nIndex; ////////////////////////////////////////////////////////////////////// // Die eingefuegten Keys loeschen - for( long nIndex = m_aInsKeys.FirstSelected(); nIndex != SFX_ENDOFSELECTION; nIndex=m_aInsKeys.NextSelected() ) + for( nIndex = m_aInsKeys.FirstSelected(); nIndex != SFX_ENDOFSELECTION; nIndex=m_aInsKeys.NextSelected() ) { OSL_ENSURE(nIndex <= pRowList->size(),"Index for undo isn't valid!"); pRow = (*pRowList)[nIndex]; @@ -514,10 +515,11 @@ void OPrimKeyUndoAct::Redo() { ::std::vector<OTableRow*>* pRowList = pTabEdCtrl->GetRowList(); OTableRow* pRow = NULL; + long nIndex; ////////////////////////////////////////////////////////////////////// // Die geloeschten Keys loeschen - for( long nIndex = m_aDelKeys.FirstSelected(); nIndex != SFX_ENDOFSELECTION; nIndex=m_aDelKeys.NextSelected() ) + for( nIndex = m_aDelKeys.FirstSelected(); nIndex != SFX_ENDOFSELECTION; nIndex=m_aDelKeys.NextSelected() ) { pRow = (*pRowList)[nIndex]; pRow->SetPrimaryKey( FALSE ); |