summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/dlg/generalpage.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'dbaccess/source/ui/dlg/generalpage.cxx')
-rw-r--r--dbaccess/source/ui/dlg/generalpage.cxx16
1 files changed, 1 insertions, 15 deletions
diff --git a/dbaccess/source/ui/dlg/generalpage.cxx b/dbaccess/source/ui/dlg/generalpage.cxx
index d62403e56da8..6dbfbe6d1285 100644
--- a/dbaccess/source/ui/dlg/generalpage.cxx
+++ b/dbaccess/source/ui/dlg/generalpage.cxx
@@ -238,17 +238,6 @@ namespace dbaui
getFlags( _rSet, bValid, bReadonly );
// if the selection is invalid, disable everything
- OUString sName,sConnectURL;
- if ( bValid )
- {
- // collect some items and some values
- const SfxStringItem* pNameItem = _rSet.GetItem<SfxStringItem>(DSID_NAME);
- const SfxStringItem* pUrlItem = _rSet.GetItem<SfxStringItem>(DSID_CONNECTURL);
- assert( pUrlItem );
- assert( pNameItem );
- sName = pNameItem->GetValue();
- sConnectURL = pUrlItem->GetValue();
- }
implSetCurrentType( OUString() );
@@ -281,15 +270,12 @@ namespace dbaui
getFlags( _rSet, bValid, bReadonly );
// if the selection is invalid, disable everything
- OUString sName,sConnectURL;
+ OUString sConnectURL;
if ( bValid )
{
// collect some items and some values
- const SfxStringItem* pNameItem = _rSet.GetItem<SfxStringItem>(DSID_NAME);
const SfxStringItem* pUrlItem = _rSet.GetItem<SfxStringItem>(DSID_CONNECTURL);
assert( pUrlItem );
- assert( pNameItem );
- sName = pNameItem->GetValue();
sConnectURL = pUrlItem->GetValue();
}