diff options
author | Noel Grandin <noel@peralex.com> | 2015-05-28 15:44:10 +0200 |
---|---|---|
committer | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2016-02-06 11:26:53 -0500 |
commit | 57027233275260b066442037a904ec34a703ae09 (patch) | |
tree | b2cada7a3987854e4e8459a6ab7d754ba781bb44 /sfx2/source/view | |
parent | 1b1669e430603ae01f593a5019dd6214cded4a33 (diff) |
loplugin:loopvartoosmall
(cherry picked from commit 6140ca9f1d728475e332f9fa96ee62dda58687ea)
Change-Id: Icb31e51575f7fffd36be73bbd87a3c5e56c3aa26
Diffstat (limited to 'sfx2/source/view')
-rw-r--r-- | sfx2/source/view/viewfrm.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/view/viewsh.cxx | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx index bb859bb258f9..c805c3e6f0e6 100644 --- a/sfx2/source/view/viewfrm.cxx +++ b/sfx2/source/view/viewfrm.cxx @@ -1542,7 +1542,7 @@ SfxViewFrame* SfxViewFrame::GetFirst SfxViewFrameArr_Impl &rFrames = pSfxApp->GetViewFrames_Impl(); // search for a SfxDocument of the specified type - for ( sal_uInt16 nPos = 0; nPos < rFrames.size(); ++nPos ) + for ( size_t nPos = 0; nPos < rFrames.size(); ++nPos ) { SfxViewFrame *pFrame = rFrames[nPos]; if ( ( !pDoc || pDoc == pFrame->GetObjectShell() ) diff --git a/sfx2/source/view/viewsh.cxx b/sfx2/source/view/viewsh.cxx index fbf12051441d..046fac849d37 100644 --- a/sfx2/source/view/viewsh.cxx +++ b/sfx2/source/view/viewsh.cxx @@ -1514,7 +1514,7 @@ SfxViewShell* SfxViewShell::GetFirst // search for a SfxViewShell of the specified type SfxViewShellArr_Impl &rShells = SfxGetpApp()->GetViewShells_Impl(); SfxViewFrameArr_Impl &rFrames = SfxGetpApp()->GetViewFrames_Impl(); - for ( sal_uInt16 nPos = 0; nPos < rShells.size(); ++nPos ) + for ( size_t nPos = 0; nPos < rShells.size(); ++nPos ) { SfxViewShell *pShell = rShells[nPos]; if ( pShell ) @@ -1522,7 +1522,7 @@ SfxViewShell* SfxViewShell::GetFirst // sometimes dangling SfxViewShells exist that point to a dead SfxViewFrame // these ViewShells shouldn't be accessible anymore // a destroyed ViewFrame is not in the ViewFrame array anymore, so checking this array helps - for ( sal_uInt16 n=0; n<rFrames.size(); ++n ) + for ( size_t n=0; n<rFrames.size(); ++n ) { SfxViewFrame *pFrame = rFrames[n]; if ( pFrame == pShell->GetViewFrame() ) @@ -1564,7 +1564,7 @@ SfxViewShell* SfxViewShell::GetNext // sometimes dangling SfxViewShells exist that point to a dead SfxViewFrame // these ViewShells shouldn't be accessible anymore // a destroyed ViewFrame is not in the ViewFrame array anymore, so checking this array helps - for ( sal_uInt16 n=0; n<rFrames.size(); ++n ) + for ( size_t n=0; n<rFrames.size(); ++n ) { SfxViewFrame *pFrame = rFrames[n]; if ( pFrame == pShell->GetViewFrame() ) @@ -1597,7 +1597,7 @@ void SfxViewShell::Notify( SfxBroadcaster& rBC, { // avoid access to dangling ViewShells SfxViewFrameArr_Impl &rFrames = SfxGetpApp()->GetViewFrames_Impl(); - for ( sal_uInt16 n=0; n<rFrames.size(); ++n ) + for ( size_t n=0; n<rFrames.size(); ++n ) { SfxViewFrame *frame = rFrames[n]; if ( frame == GetViewFrame() && &rBC == GetObjectShell() ) |