summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2011-07-30 10:08:45 +0200
committerJulien Nabet <serval2412@yahoo.fr>2011-07-30 10:08:45 +0200
commit37d7efc5f98f85437737a5dfce909b8dc43d2cbd (patch)
tree4d9f46f38ce3ec148a641d89f1a94ed96ef57c4f /desktop
parent45ff90404b02ad76e76d83365dc296a0b1220a35 (diff)
Some cppcheck cleaning
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/app/app.cxx2
-rw-r--r--desktop/source/app/dispatchwatcher.cxx2
-rw-r--r--desktop/source/deployment/gui/dp_gui_updatedialog.cxx4
3 files changed, 4 insertions, 4 deletions
diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx
index 2da459578d3e..ad3f0ba6d9bb 100644
--- a/desktop/source/app/app.cxx
+++ b/desktop/source/app/app.cxx
@@ -1690,7 +1690,7 @@ int Desktop::Main()
std::vector< String > aUnrestrictedFolders;
svt::getUnrestrictedFolders( aUnrestrictedFolders );
- if ( aUnrestrictedFolders.size() > 0 )
+ if ( !aUnrestrictedFolders.empty() )
{
// Set different working directory. The first entry is
// the new work path.
diff --git a/desktop/source/app/dispatchwatcher.cxx b/desktop/source/app/dispatchwatcher.cxx
index 28182d7e0db6..7654e0e254d6 100644
--- a/desktop/source/app/dispatchwatcher.cxx
+++ b/desktop/source/app/dispatchwatcher.cxx
@@ -576,7 +576,7 @@ sal_Bool DispatchWatcher::executeDispatchRequests( const DispatchList& aDispatch
}
}
- if ( aDispatches.size() > 0 )
+ if ( !aDispatches.empty() )
{
// Execute all asynchronous dispatches now after we placed them into our request container!
Sequence < PropertyValue > aArgs( 2 );
diff --git a/desktop/source/deployment/gui/dp_gui_updatedialog.cxx b/desktop/source/deployment/gui/dp_gui_updatedialog.cxx
index 66d5ff80633c..33306839a72f 100644
--- a/desktop/source/deployment/gui/dp_gui_updatedialog.cxx
+++ b/desktop/source/deployment/gui/dp_gui_updatedialog.cxx
@@ -1105,7 +1105,7 @@ void UpdateDialog::getIgnoredUpdates()
//------------------------------------------------------------------------------
void UpdateDialog::storeIgnoredUpdates()
{
- if ( m_bModified && ( m_ignoredUpdates.size() != 0 ) )
+ if ( m_bModified && ( !m_ignoredUpdates.empty() ) )
{
uno::Reference< lang::XMultiServiceFactory > xConfig( m_context->getServiceManager()->createInstanceWithContext(
OUSTR("com.sun.star.configuration.ConfigurationProvider"), m_context ), uno::UNO_QUERY_THROW );
@@ -1146,7 +1146,7 @@ bool UpdateDialog::isIgnoredUpdate( UpdateDialog::Index * index )
{
bool bIsIgnored = false;
- if ( m_ignoredUpdates.size() != 0 )
+ if (! m_ignoredUpdates.empty() )
{
rtl::OUString aExtensionID;
rtl::OUString aVersion;