From 474d8ffd63bbad835f1d5ccb73fcb82c2849db0f Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Tue, 17 May 2011 12:44:26 +0200 Subject: Some cppcheck cleaning --- jvmfwk/plugins/sunmajor/pluginlib/util.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'jvmfwk/plugins') 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& vecJavaHome) void bubbleSortVersion(vector >& vec) { - if(vec.size() == 0) + if(vec.empty()) return; int size= vec.size() - 1; int cIter= 0; @@ -694,7 +694,7 @@ void bubbleSortVersion(vector >& vec) vec.at(j)= less; } } - cIter++; + ++cIter; } } @@ -1022,7 +1022,7 @@ rtl::Reference getJREInfoByPath( break; } - if (props.size() == 0) + if (props.empty()) return rtl::Reference(); //find java.vendor property -- cgit