summaryrefslogtreecommitdiff
path: root/jvmfwk/plugins
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2011-05-17 12:44:26 +0200
committerJulien Nabet <serval2412@yahoo.fr>2011-05-17 12:44:26 +0200
commit474d8ffd63bbad835f1d5ccb73fcb82c2849db0f (patch)
tree520bb3389757b61cb4f25e4478d67e7cf519521e /jvmfwk/plugins
parent7159d540e2831d36b03d3f6eab6d4caefff0a84d (diff)
Some cppcheck cleaning
Diffstat (limited to 'jvmfwk/plugins')
-rw-r--r--jvmfwk/plugins/sunmajor/pluginlib/util.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/jvmfwk/plugins/sunmajor/pluginlib/util.cxx b/jvmfwk/plugins/sunmajor/pluginlib/util.cxx
index db8d537784de..4ffd415ef9b3 100644
--- a/jvmfwk/plugins/sunmajor/pluginlib/util.cxx
+++ b/jvmfwk/plugins/sunmajor/pluginlib/util.cxx
@@ -490,7 +490,7 @@ bool getJavaProps(const OUString & exePath,
props.push_back(std::make_pair(sKey, sVal));
}
- if (rs != FileHandleReader::RESULT_ERROR && props.size()>0)
+ if (rs != FileHandleReader::RESULT_ERROR && !props.empty())
ret = true;
//process error stream data
@@ -649,7 +649,7 @@ bool getJREInfoFromRegistry(vector<OUString>& vecJavaHome)
void bubbleSortVersion(vector<rtl::Reference<VendorBase> >& vec)
{
- if(vec.size() == 0)
+ if(vec.empty())
return;
int size= vec.size() - 1;
int cIter= 0;
@@ -694,7 +694,7 @@ void bubbleSortVersion(vector<rtl::Reference<VendorBase> >& vec)
vec.at(j)= less;
}
}
- cIter++;
+ ++cIter;
}
}
@@ -1022,7 +1022,7 @@ rtl::Reference<VendorBase> getJREInfoByPath(
break;
}
- if (props.size() == 0)
+ if (props.empty())
return rtl::Reference<VendorBase>();
//find java.vendor property