summaryrefslogtreecommitdiffstats
path: root/sw/source/uibase/dbui/dbmgr.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-02-29 10:59:14 +0200
committerNoel Grandin <noel@peralex.com>2016-02-29 11:11:29 +0200
commitee74e401aae0543fd20d80ec4b5c11877e56dafe (patch)
treec04fa51af8f3bddad408dea7100d839ba3c1214e /sw/source/uibase/dbui/dbmgr.cxx
parentcompilerplugins: fix clang-3.7 build (diff)
downloadcore-ee74e401aae0543fd20d80ec4b5c11877e56dafe.tar.gz
core-ee74e401aae0543fd20d80ec4b5c11877e56dafe.zip
loplugin:unuseddefaultparam in sw (part3)
Change-Id: Ibff7ac9718929349ee7daa3febb0f8fe4a9fa4db
Diffstat (limited to 'sw/source/uibase/dbui/dbmgr.cxx')
-rw-r--r--sw/source/uibase/dbui/dbmgr.cxx16
1 files changed, 5 insertions, 11 deletions
diff --git a/sw/source/uibase/dbui/dbmgr.cxx b/sw/source/uibase/dbui/dbmgr.cxx
index b583923e836c..85c283c3c1dc 100644
--- a/sw/source/uibase/dbui/dbmgr.cxx
+++ b/sw/source/uibase/dbui/dbmgr.cxx
@@ -715,10 +715,9 @@ bool SwDBManager::GetTableNames(ListBox* pListBox, const OUString& rDBName)
// fill Listbox with column names of a database
void SwDBManager::GetColumnNames(ListBox* pListBox,
- const OUString& rDBName, const OUString& rTableName, bool bAppend)
+ const OUString& rDBName, const OUString& rTableName)
{
- if (!bAppend)
- pListBox->Clear();
+ pListBox->Clear();
SwDBData aData;
aData.sDataSource = rDBName;
aData.sCommand = rTableName;
@@ -733,7 +732,7 @@ void SwDBManager::GetColumnNames(ListBox* pListBox,
xConnection = RegisterConnection( sDBName );
}
- GetColumnNames(pListBox, xConnection, rTableName, bAppend);
+ GetColumnNames(pListBox, xConnection, rTableName);
}
void SwDBManager::GetColumnNames(ListBox* pListBox,
@@ -2250,7 +2249,7 @@ bool SwDBManager::FillCalcWithMergeData( SvNumberFormatter *pDocFormatter,
}
bool SwDBManager::ToNextRecord(
- const OUString& rDataSource, const OUString& rCommand, sal_Int32 /*nCommandType*/)
+ const OUString& rDataSource, const OUString& rCommand)
{
SwDSParam* pFound = nullptr;
if(pImpl->pMergeData &&
@@ -2370,7 +2369,7 @@ bool SwDBManager::ToRecordId(sal_Int32 nSet)
}
bool SwDBManager::OpenDataSource(const OUString& rDataSource, const OUString& rTableOrQuery,
- sal_Int32 nCommandType, bool bCreate)
+ sal_Int32 nCommandType)
{
SwDBData aData;
aData.sDataSource = rDataSource;
@@ -2385,11 +2384,6 @@ bool SwDBManager::OpenDataSource(const OUString& rDataSource, const OUString& rT
uno::Reference< sdbc::XConnection> xConnection;
if(pParam && pParam->xConnection.is())
pFound->xConnection = pParam->xConnection;
- else if(bCreate)
- {
- OUString sDataSource(rDataSource);
- pFound->xConnection = RegisterConnection( sDataSource );
- }
if(pFound->xConnection.is())
{
try