summaryrefslogtreecommitdiff
path: root/sd/source/ui
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui')
-rw-r--r--sd/source/ui/annotations/annotationmanager.cxx4
-rw-r--r--sd/source/ui/dlg/RemoteDialog.cxx4
2 files changed, 6 insertions, 2 deletions
diff --git a/sd/source/ui/annotations/annotationmanager.cxx b/sd/source/ui/annotations/annotationmanager.cxx
index c91d358b5664..c4c6897ce8a6 100644
--- a/sd/source/ui/annotations/annotationmanager.cxx
+++ b/sd/source/ui/annotations/annotationmanager.cxx
@@ -762,7 +762,9 @@ void AnnotationManagerImpl::SelectAnnotation( ::com::sun::star::uno::Reference<
{
mxSelectedAnnotation = xAnnotation;
- for( AnnotationTagVector::iterator iter( maTagVector.begin() ); iter != maTagVector.end(); iter++ )
+ const AnnotationTagVector::const_iterator aEnd( maTagVector.end() );
+ for( AnnotationTagVector::const_iterator iter( maTagVector.begin() );
+ iter != aEnd; ++iter)
{
if( (*iter)->GetAnnotation() == xAnnotation )
{
diff --git a/sd/source/ui/dlg/RemoteDialog.cxx b/sd/source/ui/dlg/RemoteDialog.cxx
index 60fd783396e6..8aec838a4f3f 100644
--- a/sd/source/ui/dlg/RemoteDialog.cxx
+++ b/sd/source/ui/dlg/RemoteDialog.cxx
@@ -31,8 +31,10 @@ RemoteDialog::RemoteDialog( Window *pWindow ) :
vector<ClientInfo*> aClients( RemoteServer::getClients() );
+ const vector<ClientInfo*>::const_iterator aEnd( aClients.end() );
+
for ( vector<ClientInfo*>::const_iterator aIt( aClients.begin() );
- aIt < aClients.end(); aIt++ )
+ aIt != aEnd; ++aIt )
{
mClientBox.addEntry( *aIt );
}