summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2014-12-18 21:13:39 +0100
committerJulien Nabet <serval2412@yahoo.fr>2014-12-18 21:14:10 +0100
commit5a4c549d3252ef371656cbb5dedeb8c9c5c60994 (patch)
tree90f06a88eaadda42bc2a78bf0e53b3c4b459ca62
parentf2ac9fab2677a6a718f251baef75d3cae96d1f01 (diff)
Some cppcheck cleanings: Prefer prefix ++/-- operators for non-primitive types
Change-Id: I899164412ad90653b4228423283f9fbd4cb5fccc
-rw-r--r--jvmfwk/plugins/sunmajor/pluginlib/util.cxx6
-rw-r--r--vcl/opengl/program.cxx2
-rw-r--r--vcl/source/opengl/OpenGLContext.cxx2
3 files changed, 5 insertions, 5 deletions
diff --git a/jvmfwk/plugins/sunmajor/pluginlib/util.cxx b/jvmfwk/plugins/sunmajor/pluginlib/util.cxx
index 2ef242964ec8..eb43be025176 100644
--- a/jvmfwk/plugins/sunmajor/pluginlib/util.cxx
+++ b/jvmfwk/plugins/sunmajor/pluginlib/util.cxx
@@ -595,7 +595,7 @@ void addJavaInfoFromWinReg(
// create impl objects
typedef std::vector<OUString>::iterator ItHome;
for(ItHome it_home= vecJavaHome.begin(); it_home != vecJavaHome.end();
- it_home++)
+ ++it_home)
{
getAndAddJREInfoByPath(*it_home, allInfos, addedInfos);
}
@@ -606,7 +606,7 @@ void addJavaInfoFromWinReg(
{
typedef std::vector<OUString>::iterator ItHome;
for(ItHome it_home= vecJavaHome.begin(); it_home != vecJavaHome.end();
- it_home++)
+ ++it_home)
{
getAndAddJREInfoByPath(*it_home, allInfos, addedInfos);
}
@@ -657,7 +657,7 @@ bool getJavaInfoFromRegistry(const wchar_t* szRegKey,
//iterate over the vector with java home strings
typedef vector<OUString>::iterator ItHome;
for(ItHome itHome= vecJavaHome.begin();
- itHome != vecJavaHome.end(); itHome++)
+ itHome != vecJavaHome.end(); ++itHome)
{
if(usHomeUrl.equals(*itHome))
{
diff --git a/vcl/opengl/program.cxx b/vcl/opengl/program.cxx
index 46552fd2dc34..434b72482a8b 100644
--- a/vcl/opengl/program.cxx
+++ b/vcl/opengl/program.cxx
@@ -57,7 +57,7 @@ bool OpenGLProgram::Clean()
{
glActiveTexture( GL_TEXTURE0 + nIndex-- );
it->Unbind();
- it++;
+ ++it;
}
maTextures.clear();
}
diff --git a/vcl/source/opengl/OpenGLContext.cxx b/vcl/source/opengl/OpenGLContext.cxx
index 04e19ba592dd..182a2e95be19 100644
--- a/vcl/source/opengl/OpenGLContext.cxx
+++ b/vcl/source/opengl/OpenGLContext.cxx
@@ -1168,7 +1168,7 @@ void OpenGLContext::reset()
while( it != maPrograms.end() )
{
delete it->second;
- it++;
+ ++it;
}
maPrograms.clear();
}