summaryrefslogtreecommitdiff
path: root/svx/source/sdr
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2011-07-31 01:17:59 +0200
committerJulien Nabet <serval2412@yahoo.fr>2011-07-31 01:17:59 +0200
commit93774fa4d53d0af09c4beba53bf0d6fafca59ce8 (patch)
tree63d4bff01a9c0a7b63971f0e108557eaa6ecad5e /svx/source/sdr
parent5c82c9588ef4b72e00e8bf412ab9b80171159b58 (diff)
Some cppcheck cleaning
Diffstat (limited to 'svx/source/sdr')
-rw-r--r--svx/source/sdr/animation/scheduler.cxx2
-rw-r--r--svx/source/sdr/contact/viewcontactofsdrobj.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/sdr/animation/scheduler.cxx b/svx/source/sdr/animation/scheduler.cxx
index d203de342e3f..99a5cc52208d 100644
--- a/svx/source/sdr/animation/scheduler.cxx
+++ b/svx/source/sdr/animation/scheduler.cxx
@@ -214,7 +214,7 @@ namespace sdr
// execute events from the vector
for(::std::vector< Event* >::iterator aCandidate = EventPointerVector.begin();
- aCandidate != EventPointerVector.end(); aCandidate++)
+ aCandidate != EventPointerVector.end(); ++aCandidate)
{
// trigger event. This may re-insert the event to the scheduler again
(*aCandidate)->Trigger(mnTime);
diff --git a/svx/source/sdr/contact/viewcontactofsdrobj.cxx b/svx/source/sdr/contact/viewcontactofsdrobj.cxx
index e26c048b69ae..1d83ee3ef81a 100644
--- a/svx/source/sdr/contact/viewcontactofsdrobj.cxx
+++ b/svx/source/sdr/contact/viewcontactofsdrobj.cxx
@@ -174,7 +174,7 @@ namespace sdr
aGluepointVector.push_back(basegfx::B2DPoint(aPosition.X(), aPosition.Y()));
}
- if(aGluepointVector.size())
+ if(!aGluepointVector.empty())
{
const basegfx::BColor aBackPen(1.0, 1.0, 1.0);
const basegfx::BColor aRGBFrontColor(0.0, 0.0, 1.0); // COL_LIGHTBLUE