summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/dlg/ConnectionPage.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-06-10 17:23:12 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-06-10 17:25:23 +0200
commit4dbeadb9c1e46ac0008f076cd6f9c5d0a38a4d40 (patch)
treea71acd0d466e02c18bf78ffdcfea748135805d21 /dbaccess/source/ui/dlg/ConnectionPage.cxx
parent2f8fd888b42dc41662b54a16d62575c2b15e844a (diff)
Change SfxTabPage::FillItemSet param from ref to pointer
...there were a number of call sites that passed undefined "null pointer references" (apparently in cases where the passed argument was actually unused) Change-Id: I19799e90f0cd8e98367782441a5ea9df27b59830
Diffstat (limited to 'dbaccess/source/ui/dlg/ConnectionPage.cxx')
-rw-r--r--dbaccess/source/ui/dlg/ConnectionPage.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/dbaccess/source/ui/dlg/ConnectionPage.cxx b/dbaccess/source/ui/dlg/ConnectionPage.cxx
index 573a8feafa65..00648f52da29 100644
--- a/dbaccess/source/ui/dlg/ConnectionPage.cxx
+++ b/dbaccess/source/ui/dlg/ConnectionPage.cxx
@@ -278,25 +278,25 @@ namespace dbaui
OConnectionHelper::fillControls(_rControlList);
}
- bool OConnectionTabPage::FillItemSet(SfxItemSet& _rSet)
+ bool OConnectionTabPage::FillItemSet(SfxItemSet* _rSet)
{
bool bChangedSomething = false;
if (m_aUserName.IsValueChangedFromSaved())
{
- _rSet.Put(SfxStringItem(DSID_USER, m_aUserName.GetText()));
- _rSet.Put(SfxStringItem(DSID_PASSWORD, OUString()));
+ _rSet->Put(SfxStringItem(DSID_USER, m_aUserName.GetText()));
+ _rSet->Put(SfxStringItem(DSID_PASSWORD, OUString()));
bChangedSomething = true;
}
- fillBool(_rSet,&m_aPasswordRequired,DSID_PASSWORDREQUIRED,bChangedSomething);
+ fillBool(*_rSet,&m_aPasswordRequired,DSID_PASSWORDREQUIRED,bChangedSomething);
if ( m_pCollection->determineType(m_eType) == ::dbaccess::DST_JDBC )
{
- fillString(_rSet,&m_aJavaDriver, DSID_JDBCDRIVERCLASS, bChangedSomething);
+ fillString(*_rSet,&m_aJavaDriver, DSID_JDBCDRIVERCLASS, bChangedSomething);
}
- fillString(_rSet,&m_aConnectionURL, DSID_CONNECTURL, bChangedSomething);
+ fillString(*_rSet,&m_aConnectionURL, DSID_CONNECTURL, bChangedSomething);
return bChangedSomething;
}