summaryrefslogtreecommitdiff
path: root/sd/source/ui
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2013-04-01 19:02:44 +0200
committerJulien Nabet <serval2412@yahoo.fr>2013-04-01 19:02:44 +0200
commit79894c1de064a65b3a793e063c8f3aa96426c70a (patch)
treecc1a18809784df19294c5024f9f13d1ed982e1a0 /sd/source/ui
parentfb31dfbda781721a56c7e3a4f5a9873ecc1f5095 (diff)
Prefer prefix ++/-- operators for non-primitive types
Change-Id: I0471261e01ed5fb45cb470abd5bc1e809f2873be
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 );
}