diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2011-08-13 15:12:01 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2011-08-13 15:12:35 +0200 |
commit | 66fd1442696059cc6de07ec96af77082654a0990 (patch) | |
tree | 5368bc4dc5c39ff03dd9222bafd57442df0ff63e /extensions | |
parent | fee11cbc619576ae69b03e62622a38bef8799502 (diff) |
Some cppcheck cleaning
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/update/check/updatecheck.cxx | 2 | ||||
-rw-r--r-- | extensions/source/update/check/updateprotocol.cxx | 7 |
2 files changed, 2 insertions, 7 deletions
diff --git a/extensions/source/update/check/updatecheck.cxx b/extensions/source/update/check/updatecheck.cxx index 2a5fc808180a..468be3e9d86c 100644 --- a/extensions/source/update/check/updatecheck.cxx +++ b/extensions/source/update/check/updatecheck.cxx @@ -1359,7 +1359,7 @@ UpdateCheck::setUpdateInfo(const UpdateInfo& aInfo) rModel->updateLastChecked(); UpdateState eUIState; - if( m_aUpdateInfo.Sources.size() > 0 ) + if( !m_aUpdateInfo.Sources.empty() ) { rModel->storeUpdateFound(aInfo, getBuildId()); diff --git a/extensions/source/update/check/updateprotocol.cxx b/extensions/source/update/check/updateprotocol.cxx index 5a59b4e070fe..e5e1087e2be3 100644 --- a/extensions/source/update/check/updateprotocol.cxx +++ b/extensions/source/update/check/updateprotocol.cxx @@ -231,13 +231,8 @@ checkForUpdates( o_rUpdateInfo.ReleaseNotes.push_back(aRelNote); } } -/* - o_rUpdateInfo.ReleaseNotes.push_back( - ReleaseNote(1, UNISTRING("http://qa.openoffice.org/tests/online_update_test.html")) - ); -*/ - if( o_rUpdateInfo.Sources.size() > 0 ) + if( !o_rUpdateInfo.Sources.empty() ) return true; } } |