summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/dlg
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-03-08 17:04:25 +0200
committerNoel Grandin <noel@peralex.com>2016-03-09 10:07:47 +0200
commit1b1080fe8a2368410982c5b11575de183fb1bfa9 (patch)
treeb36be6e160d6c647a9769bae5058e291822f4b33 /dbaccess/source/ui/dlg
parented4375c6d834e68a3f7c7dfb39a6ae0755da4785 (diff)
loplugin:constantparam in dbaccess
Change-Id: I44b5a586a1b0da47e032dff097ebf545f5fe76fc
Diffstat (limited to 'dbaccess/source/ui/dlg')
-rw-r--r--dbaccess/source/ui/dlg/ConnectionHelper.cxx16
-rw-r--r--dbaccess/source/ui/dlg/ConnectionHelper.hxx2
2 files changed, 5 insertions, 13 deletions
diff --git a/dbaccess/source/ui/dlg/ConnectionHelper.cxx b/dbaccess/source/ui/dlg/ConnectionHelper.cxx
index 7fd4ff4ae31f..b6afedc0881a 100644
--- a/dbaccess/source/ui/dlg/ConnectionHelper.cxx
+++ b/dbaccess/source/ui/dlg/ConnectionHelper.cxx
@@ -411,10 +411,10 @@ namespace dbaui
implUpdateURLDependentStates();
}
- OUString OConnectionHelper::impl_getURL( bool _bPrefix ) const
+ OUString OConnectionHelper::impl_getURL() const
{
// get the pure text
- OUString sURL = _bPrefix ? m_pConnectionURL->GetText() : OUString(m_pConnectionURL->GetTextNoPrefix());
+ OUString sURL = m_pConnectionURL->GetTextNoPrefix();
OSL_ENSURE( m_pCollection, "OConnectionHelper::impl_getURL: have no interpreter for the URLs!" );
@@ -424,15 +424,7 @@ namespace dbaui
{
// get the two parts: prefix and file URL
OUString sTypePrefix, sFileURLDecoded;
- if ( _bPrefix )
- {
- sTypePrefix = m_pCollection->getPrefix( m_eType );
- sFileURLDecoded = m_pCollection->cutPrefix( sURL );
- }
- else
- {
- sFileURLDecoded = sURL;
- }
+ sFileURLDecoded = sURL;
sURL = sTypePrefix;
if ( !sFileURLDecoded.isEmpty() )
@@ -456,7 +448,7 @@ namespace dbaui
OUString OConnectionHelper::getURLNoPrefix( ) const
{
- return impl_getURL( false );
+ return impl_getURL();
}
void OConnectionHelper::setURLNoPrefix( const OUString& _rURL )
diff --git a/dbaccess/source/ui/dlg/ConnectionHelper.hxx b/dbaccess/source/ui/dlg/ConnectionHelper.hxx
index e025e00eb165..d6d43925efc6 100644
--- a/dbaccess/source/ui/dlg/ConnectionHelper.hxx
+++ b/dbaccess/source/ui/dlg/ConnectionHelper.hxx
@@ -93,7 +93,7 @@ namespace dbaui
private:
DECL_LINK_TYPED(OnBrowseConnections, Button*, void);
DECL_LINK_TYPED(OnCreateDatabase, Button*, void);
- OUString impl_getURL( bool _bPrefix ) const;
+ OUString impl_getURL() const;
void impl_setURL( const OUString& _rURL, bool _bPrefix );
void implUpdateURLDependentStates() const;
};