diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2011-05-17 12:44:26 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2011-05-17 12:44:26 +0200 |
commit | 474d8ffd63bbad835f1d5ccb73fcb82c2849db0f (patch) | |
tree | 520bb3389757b61cb4f25e4478d67e7cf519521e /jvmfwk/plugins | |
parent | 7159d540e2831d36b03d3f6eab6d4caefff0a84d (diff) |
Some cppcheck cleaning
Diffstat (limited to 'jvmfwk/plugins')
-rw-r--r-- | jvmfwk/plugins/sunmajor/pluginlib/util.cxx | 8 |
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 |