[Libreoffice-commits] core.git: jvmfwk/plugins vcl/opengl vcl/source
Julien Nabet
serval2412 at yahoo.fr
Thu Dec 18 12:14:46 PST 2014
jvmfwk/plugins/sunmajor/pluginlib/util.cxx | 6 +++---
vcl/opengl/program.cxx | 2 +-
vcl/source/opengl/OpenGLContext.cxx | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
New commits:
commit 5a4c549d3252ef371656cbb5dedeb8c9c5c60994
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Thu Dec 18 21:13:39 2014 +0100
Some cppcheck cleanings: Prefer prefix ++/-- operators for non-primitive types
Change-Id: I899164412ad90653b4228423283f9fbd4cb5fccc
diff --git a/jvmfwk/plugins/sunmajor/pluginlib/util.cxx b/jvmfwk/plugins/sunmajor/pluginlib/util.cxx
index 2ef2429..eb43be0 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 46552fd..434b724 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 04e19ba..182a2e9 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();
}
More information about the Libreoffice-commits
mailing list