Kaydet (Commit) 5a4c549d authored tarafından Julien Nabet's avatar Julien Nabet

Some cppcheck cleanings: Prefer prefix ++/-- operators for non-primitive types

Change-Id: I899164412ad90653b4228423283f9fbd4cb5fccc
üst f2ac9fab
...@@ -595,7 +595,7 @@ void addJavaInfoFromWinReg( ...@@ -595,7 +595,7 @@ void addJavaInfoFromWinReg(
// create impl objects // create impl objects
typedef std::vector<OUString>::iterator ItHome; typedef std::vector<OUString>::iterator ItHome;
for(ItHome it_home= vecJavaHome.begin(); it_home != vecJavaHome.end(); for(ItHome it_home= vecJavaHome.begin(); it_home != vecJavaHome.end();
it_home++) ++it_home)
{ {
getAndAddJREInfoByPath(*it_home, allInfos, addedInfos); getAndAddJREInfoByPath(*it_home, allInfos, addedInfos);
} }
...@@ -606,7 +606,7 @@ void addJavaInfoFromWinReg( ...@@ -606,7 +606,7 @@ void addJavaInfoFromWinReg(
{ {
typedef std::vector<OUString>::iterator ItHome; typedef std::vector<OUString>::iterator ItHome;
for(ItHome it_home= vecJavaHome.begin(); it_home != vecJavaHome.end(); for(ItHome it_home= vecJavaHome.begin(); it_home != vecJavaHome.end();
it_home++) ++it_home)
{ {
getAndAddJREInfoByPath(*it_home, allInfos, addedInfos); getAndAddJREInfoByPath(*it_home, allInfos, addedInfos);
} }
...@@ -657,7 +657,7 @@ bool getJavaInfoFromRegistry(const wchar_t* szRegKey, ...@@ -657,7 +657,7 @@ bool getJavaInfoFromRegistry(const wchar_t* szRegKey,
//iterate over the vector with java home strings //iterate over the vector with java home strings
typedef vector<OUString>::iterator ItHome; typedef vector<OUString>::iterator ItHome;
for(ItHome itHome= vecJavaHome.begin(); for(ItHome itHome= vecJavaHome.begin();
itHome != vecJavaHome.end(); itHome++) itHome != vecJavaHome.end(); ++itHome)
{ {
if(usHomeUrl.equals(*itHome)) if(usHomeUrl.equals(*itHome))
{ {
......
...@@ -57,7 +57,7 @@ bool OpenGLProgram::Clean() ...@@ -57,7 +57,7 @@ bool OpenGLProgram::Clean()
{ {
glActiveTexture( GL_TEXTURE0 + nIndex-- ); glActiveTexture( GL_TEXTURE0 + nIndex-- );
it->Unbind(); it->Unbind();
it++; ++it;
} }
maTextures.clear(); maTextures.clear();
} }
......
...@@ -1168,7 +1168,7 @@ void OpenGLContext::reset() ...@@ -1168,7 +1168,7 @@ void OpenGLContext::reset()
while( it != maPrograms.end() ) while( it != maPrograms.end() )
{ {
delete it->second; delete it->second;
it++; ++it;
} }
maPrograms.clear(); maPrograms.clear();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment