summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-03-23 10:43:26 +0200
committerNoel Grandin <noel@peralex.com>2016-03-23 11:22:34 +0200
commit46377531593cf3484f4b48c5398a03bbaaf0d053 (patch)
treeebfa5db6e1e10498d9235b5b77f585aa4d5efdb8 /desktop
parent1900790736610f71b12c5f0b260672b090b0701c (diff)
loplugin:constantparam in desktop
Change-Id: I9c7cab31a37214479e3f66d4b8a71de75a50f2e0
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/deployment/gui/dp_gui_dialog2.cxx8
-rw-r--r--desktop/source/deployment/gui/dp_gui_dialog2.hxx2
-rw-r--r--desktop/source/deployment/manager/dp_activepackages.cxx5
-rw-r--r--desktop/source/deployment/manager/dp_activepackages.hxx2
-rw-r--r--desktop/source/deployment/manager/dp_manager.cxx2
5 files changed, 9 insertions, 10 deletions
diff --git a/desktop/source/deployment/gui/dp_gui_dialog2.cxx b/desktop/source/deployment/gui/dp_gui_dialog2.cxx
index fcdbde14192a..95b652dc05b1 100644
--- a/desktop/source/deployment/gui/dp_gui_dialog2.cxx
+++ b/desktop/source/deployment/gui/dp_gui_dialog2.cxx
@@ -650,12 +650,12 @@ bool DialogHelper::installForAllUsers( bool &bInstallForAll ) const
return true;
}
-void DialogHelper::PostUserEvent( const Link<void*,void>& rLink, void* pCaller, bool bReferenceLink )
+void DialogHelper::PostUserEvent( const Link<void*,void>& rLink, void* pCaller )
{
if ( m_nEventID )
Application::RemoveUserEvent( m_nEventID );
- m_nEventID = Application::PostUserEvent( rLink, pCaller, bReferenceLink );
+ m_nEventID = Application::PostUserEvent( rLink, pCaller, true/*bReferenceLink*/ );
}
// ExtMgrDialog
@@ -1009,7 +1009,7 @@ void ExtMgrDialog::showProgress( bool _bStart )
OSL_TRACE( "showProgress stop!" );
}
- DialogHelper::PostUserEvent( LINK( this, ExtMgrDialog, startProgress ), reinterpret_cast<void*>(bStart), true );
+ DialogHelper::PostUserEvent( LINK( this, ExtMgrDialog, startProgress ), reinterpret_cast<void*>(bStart) );
}
@@ -1318,7 +1318,7 @@ void UpdateRequiredDialog::showProgress( bool _bStart )
OSL_TRACE( "showProgress stop!" );
}
- DialogHelper::PostUserEvent( LINK( this, UpdateRequiredDialog, startProgress ), reinterpret_cast<void*>(bStart), true );
+ DialogHelper::PostUserEvent( LINK( this, UpdateRequiredDialog, startProgress ), reinterpret_cast<void*>(bStart) );
}
diff --git a/desktop/source/deployment/gui/dp_gui_dialog2.hxx b/desktop/source/deployment/gui/dp_gui_dialog2.hxx
index 4fd00359de6e..82616dd21f1b 100644
--- a/desktop/source/deployment/gui/dp_gui_dialog2.hxx
+++ b/desktop/source/deployment/gui/dp_gui_dialog2.hxx
@@ -68,7 +68,7 @@ public:
void openWebBrowser( const OUString & sURL, const OUString & sTitle ) const;
Dialog* getWindow() const { return m_pVCLWindow; };
- void PostUserEvent( const Link<void*,void>& rLink, void* pCaller, bool bReferenceLink = false );
+ void PostUserEvent( const Link<void*,void>& rLink, void* pCaller );
void clearEventID() { m_nEventID = nullptr; }
virtual void showProgress( bool bStart ) = 0;
diff --git a/desktop/source/deployment/manager/dp_activepackages.cxx b/desktop/source/deployment/manager/dp_activepackages.cxx
index 6e227cbc3d92..83bb3474c0d1 100644
--- a/desktop/source/deployment/manager/dp_activepackages.cxx
+++ b/desktop/source/deployment/manager/dp_activepackages.cxx
@@ -116,13 +116,12 @@ namespace dp_manager {
ActivePackages::ActivePackages() {}
-ActivePackages::ActivePackages(OUString const & url, bool readOnly)
+ActivePackages::ActivePackages(OUString const & url)
#if HAVE_FEATURE_EXTENSIONS
- : m_map(url, readOnly)
+ : m_map(url, false/*readOnly*/)
#endif
{
(void) url;
- (void) readOnly;
}
ActivePackages::~ActivePackages() {}
diff --git a/desktop/source/deployment/manager/dp_activepackages.hxx b/desktop/source/deployment/manager/dp_activepackages.hxx
index 4f83d0a76c08..70770bad2cc7 100644
--- a/desktop/source/deployment/manager/dp_activepackages.hxx
+++ b/desktop/source/deployment/manager/dp_activepackages.hxx
@@ -65,7 +65,7 @@ public:
ActivePackages();
- ActivePackages(OUString const & url, bool readOnly);
+ ActivePackages(OUString const & url);
~ActivePackages();
diff --git a/desktop/source/deployment/manager/dp_manager.cxx b/desktop/source/deployment/manager/dp_manager.cxx
index 46d327febff6..1cd7349bb13c 100644
--- a/desktop/source/deployment/manager/dp_manager.cxx
+++ b/desktop/source/deployment/manager/dp_manager.cxx
@@ -172,7 +172,7 @@ void PackageManagerImpl::initActivationLayer(
dbName = m_registrationData_expanded + "/extensions.pmap";
}
// The data base can always be written because it is always in the user installation
- m_activePackagesDB.reset( new ActivePackages( dbName, false ) );
+ m_activePackagesDB.reset( new ActivePackages( dbName ) );
if (! m_readOnly && ! (m_context == "bundled"))
{