diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-03-11 16:27:41 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-03-11 16:27:41 +0000 |
commit | 38996137f54b1d81de4dd69ab07994cb5b1f197b (patch) | |
tree | b7a71878cac4912cb4df3ae075dbc659788289fd /sfx2 | |
parent | cda704ab1b4ee463660ef8003804fc6dcae7bf67 (diff) |
#i10000#: for scope
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/config/evntconf.cxx | 7 | ||||
-rw-r--r-- | sfx2/source/toolbox/imgmgr.cxx | 7 |
2 files changed, 8 insertions, 6 deletions
diff --git a/sfx2/source/config/evntconf.cxx b/sfx2/source/config/evntconf.cxx index b5b3e29529fb..339c48fd0133 100644 --- a/sfx2/source/config/evntconf.cxx +++ b/sfx2/source/config/evntconf.cxx @@ -2,9 +2,9 @@ * * $RCSfile: evntconf.cxx,v $ * - * $Revision: 1.17 $ + * $Revision: 1.18 $ * - * last change: $Author: vg $ $Date: 2004-01-06 16:25:10 $ + * last change: $Author: hr $ $Date: 2004-03-11 17:26:20 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -585,7 +585,8 @@ BOOL SfxEventConfigItem_Impl::StoreXML( SvStream& rOutStream ) if ( aEventName.getLength() ) { // search name - for ( long n=0; n<(long)nNamesCount; n++ ) + long n; + for ( n=0; n<(long)nNamesCount; n++ ) { if ( aSequence[n] == aEventName ) { diff --git a/sfx2/source/toolbox/imgmgr.cxx b/sfx2/source/toolbox/imgmgr.cxx index e820d8ebdba7..d88f5c252f46 100644 --- a/sfx2/source/toolbox/imgmgr.cxx +++ b/sfx2/source/toolbox/imgmgr.cxx @@ -2,9 +2,9 @@ * * $RCSfile: imgmgr.cxx,v $ * - * $Revision: 1.16 $ + * $Revision: 1.17 $ * - * last change: $Author: rt $ $Date: 2003-12-01 18:25:13 $ + * last change: $Author: hr $ $Date: 2004-03-11 17:27:41 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -313,7 +313,8 @@ Bitmap* SfxBitmapList_Impl::GetBitmap(USHORT nId) const void SfxBitmapList_Impl::AddBitmap( USHORT nId, const Bitmap& rBmp ) { - for ( USHORT nPos=0; nPos<pList->Count(); nPos++ ) + USHORT nPos; + for ( nPos=0; nPos<pList->Count(); nPos++ ) if ( (*pList)[nPos]->nId == nId ) break; DBG_ASSERT( nPos>=pList->Count(), "Bitmap mit dieser Id schon vorhanden!" ); |