summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-08-20 13:02:42 +0200
committerNoel Grandin <noel@peralex.com>2015-08-20 13:52:17 +0200
commit7d769f9df5b95d717f3cd045dbd8f82ff2de27a1 (patch)
treef04de671670a533ccffe20bf3aa0fa9c5f837a5d /desktop
parent0670872ce0d191cf93481215025cafd2062b8a8f (diff)
loplugin: defaultparams
Change-Id: Ibf0ea539d2a95073a12f84964759d9c7a94baa7b
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/app/dispatchwatcher.cxx8
-rw-r--r--desktop/source/deployment/gui/dp_gui_dialog2.cxx10
-rw-r--r--desktop/source/deployment/gui/dp_gui_updatedialog.cxx2
-rw-r--r--desktop/source/deployment/gui/dp_gui_updateinstalldialog.cxx4
-rw-r--r--desktop/source/deployment/gui/license_dialog.cxx2
-rw-r--r--desktop/source/deployment/manager/dp_activepackages.cxx2
-rw-r--r--desktop/source/deployment/manager/dp_manager.cxx6
-rw-r--r--desktop/source/deployment/registry/executable/dp_executable.cxx2
8 files changed, 18 insertions, 18 deletions
diff --git a/desktop/source/app/dispatchwatcher.cxx b/desktop/source/app/dispatchwatcher.cxx
index f0b29ecde2d4..77d04a2b77f2 100644
--- a/desktop/source/app/dispatchwatcher.cxx
+++ b/desktop/source/app/dispatchwatcher.cxx
@@ -241,7 +241,7 @@ bool DispatchWatcher::executeDispatchRequests( const DispatchList& aDispatchRequ
{
bSetInputFilter = true;
aForcedInputFilter = aDispatchRequest.aURL;
- OfficeIPCThread::RequestsCompleted( 1 );
+ OfficeIPCThread::RequestsCompleted();
continue;
}
@@ -478,7 +478,7 @@ bool DispatchWatcher::executeDispatchRequests( const DispatchList& aDispatchRequ
aDispatchRequest.aRequestType == REQUEST_FORCENEW )
{
// request is completed
- OfficeIPCThread::RequestsCompleted( 1 );
+ OfficeIPCThread::RequestsCompleted();
}
else if ( aDispatchRequest.aRequestType == REQUEST_PRINT ||
aDispatchRequest.aRequestType == REQUEST_PRINTTO ||
@@ -695,7 +695,7 @@ bool DispatchWatcher::executeDispatchRequests( const DispatchList& aDispatchRequ
}
// request is completed
- OfficeIPCThread::RequestsCompleted( 1 );
+ OfficeIPCThread::RequestsCompleted();
}
}
}
@@ -760,7 +760,7 @@ void SAL_CALL DispatchWatcher::dispatchFinished( const DispatchResultEvent& ) th
osl::ClearableMutexGuard aGuard( GetMutex() );
sal_Int16 nCount = --m_nRequestCount;
aGuard.clear();
- OfficeIPCThread::RequestsCompleted( 1 );
+ OfficeIPCThread::RequestsCompleted();
if ( !nCount && !OfficeIPCThread::AreRequestsPending() )
{
// We have to check if we have an open task otherwise we have to shutdown the office.
diff --git a/desktop/source/deployment/gui/dp_gui_dialog2.cxx b/desktop/source/deployment/gui/dp_gui_dialog2.cxx
index 96c1097bf0a0..767500d8eb41 100644
--- a/desktop/source/deployment/gui/dp_gui_dialog2.cxx
+++ b/desktop/source/deployment/gui/dp_gui_dialog2.cxx
@@ -709,9 +709,9 @@ ExtMgrDialog::ExtMgrDialog(vcl::Window *pParent, TheExtensionManager *pManager,
m_pSharedCbx->SetClickHdl( LINK( this, ExtMgrDialog, HandleExtTypeCbx ) );
m_pUserCbx->SetClickHdl( LINK( this, ExtMgrDialog, HandleExtTypeCbx ) );
- m_pBundledCbx->Check( true );
- m_pSharedCbx->Check( true );
- m_pUserCbx->Check( true );
+ m_pBundledCbx->Check();
+ m_pSharedCbx->Check();
+ m_pUserCbx->Check();
m_pProgressBar->Hide();
@@ -1420,7 +1420,7 @@ IMPL_LINK_NOARG(UpdateRequiredDialog, HandleCloseBtn)
else if ( hasActiveEntries() )
disableAllEntries();
else
- EndDialog( 0 );
+ EndDialog();
}
return 1;
@@ -1505,7 +1505,7 @@ bool UpdateRequiredDialog::Close()
else if ( hasActiveEntries() )
disableAllEntries();
else
- EndDialog( 0 );
+ EndDialog();
}
return false;
diff --git a/desktop/source/deployment/gui/dp_gui_updatedialog.cxx b/desktop/source/deployment/gui/dp_gui_updatedialog.cxx
index 8178fc0ab9b4..7a6e2e319208 100644
--- a/desktop/source/deployment/gui/dp_gui_updatedialog.cxx
+++ b/desktop/source/deployment/gui/dp_gui_updatedialog.cxx
@@ -1319,7 +1319,7 @@ IMPL_LINK_NOARG(UpdateDialog, okHandler)
IMPL_LINK_NOARG(UpdateDialog, closeHandler) {
m_thread->stop();
- EndDialog(RET_CANCEL);
+ EndDialog();
return 0;
}
diff --git a/desktop/source/deployment/gui/dp_gui_updateinstalldialog.cxx b/desktop/source/deployment/gui/dp_gui_updateinstalldialog.cxx
index 0c8d665842a3..849942b0006a 100644
--- a/desktop/source/deployment/gui/dp_gui_updateinstalldialog.cxx
+++ b/desktop/source/deployment/gui/dp_gui_updateinstalldialog.cxx
@@ -326,7 +326,7 @@ void UpdateInstallDialog::setError(OUString const & exceptionMessage)
IMPL_LINK_NOARG(UpdateInstallDialog, cancelHandler)
{
m_thread->stop();
- EndDialog(RET_CANCEL);
+ EndDialog();
return 0;
}
@@ -352,7 +352,7 @@ void UpdateInstallDialog::Thread::downloadExtensions()
m_sDownloadFolder = destFolder;
try
{
- dp_misc::create_folder(0, destFolder, m_updateCmdEnv.get(), true );
+ dp_misc::create_folder(0, destFolder, m_updateCmdEnv.get() );
} catch (const cssu::Exception & e)
{
throw cssu::Exception(e.Message + " No extensions will be installed.", 0);
diff --git a/desktop/source/deployment/gui/license_dialog.cxx b/desktop/source/deployment/gui/license_dialog.cxx
index cc1621aebc8b..2118c57a415c 100644
--- a/desktop/source/deployment/gui/license_dialog.cxx
+++ b/desktop/source/deployment/gui/license_dialog.cxx
@@ -249,7 +249,7 @@ IMPL_LINK_NOARG(LicenseDialogImpl, AcceptHdl)
IMPL_LINK_NOARG(LicenseDialogImpl, CancelHdl)
{
- EndDialog(RET_CANCEL);
+ EndDialog();
return 0;
}
diff --git a/desktop/source/deployment/manager/dp_activepackages.cxx b/desktop/source/deployment/manager/dp_activepackages.cxx
index d19337f856dc..83db37919f6f 100644
--- a/desktop/source/deployment/manager/dp_activepackages.cxx
+++ b/desktop/source/deployment/manager/dp_activepackages.cxx
@@ -211,7 +211,7 @@ void ActivePackages::erase(
OUString const & id, OUString const & fileName)
{
#if HAVE_FEATURE_EXTENSIONS
- m_map.erase(newKey(id), true) || m_map.erase(oldKey(fileName), true);
+ m_map.erase(newKey(id)) || m_map.erase(oldKey(fileName));
#else
(void) id;
(void) fileName;
diff --git a/desktop/source/deployment/manager/dp_manager.cxx b/desktop/source/deployment/manager/dp_manager.cxx
index d75cb3706d88..007d8e5a7287 100644
--- a/desktop/source/deployment/manager/dp_manager.cxx
+++ b/desktop/source/deployment/manager/dp_manager.cxx
@@ -160,7 +160,7 @@ void PackageManagerImpl::initActivationLayer(
m_activePackages_expanded = expandUnoRcUrl( m_activePackages );
m_registrationData_expanded = expandUnoRcUrl(m_registrationData);
if (!m_readOnly)
- create_folder( 0, m_activePackages_expanded, xCmdEnv, true);
+ create_folder( 0, m_activePackages_expanded, xCmdEnv);
OUString dbName;
if (m_context == "user")
@@ -168,7 +168,7 @@ void PackageManagerImpl::initActivationLayer(
else
{
// Create the extension data base in the user installation
- create_folder( 0, m_registrationData_expanded, xCmdEnv, true);
+ create_folder( 0, m_registrationData_expanded, xCmdEnv);
dbName = m_registrationData_expanded + "/extensions.pmap";
}
// The data base can always be written because it is always in the user installation
@@ -953,7 +953,7 @@ Reference<deployment::XPackage> PackageManagerImpl::getDeployedPackage_(
ActivePackages::Data val;
if (m_activePackagesDB->get( &val, id, fileName ))
{
- return getDeployedPackage_( id, val, xCmdEnv, false );
+ return getDeployedPackage_( id, val, xCmdEnv );
}
throw lang::IllegalArgumentException(
getResourceString(RID_STR_NO_SUCH_PACKAGE) + id,
diff --git a/desktop/source/deployment/registry/executable/dp_executable.cxx b/desktop/source/deployment/registry/executable/dp_executable.cxx
index cdc61649a374..9be5d9c53bfc 100644
--- a/desktop/source/deployment/registry/executable/dp_executable.cxx
+++ b/desktop/source/deployment/registry/executable/dp_executable.cxx
@@ -284,7 +284,7 @@ bool BackendImpl::ExecutablePackageImpl::isUrlTargetInExtension()
if (osl::File::E_None == osl::File::getAbsoluteFileURL(
OUString(), dp_misc::expandUnoRcUrl(m_url), sFile))
{
- if (sFile.match(sExtensionDir, 0))
+ if (sFile.match(sExtensionDir))
bSuccess = true;
}
}