summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/dlg/ConnectionHelper.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-08-19 09:11:34 +0200
committerNoel Grandin <noel@peralex.com>2015-08-26 11:15:35 +0200
commit167bc621ef825ed5b961502fe9324a675ee34e42 (patch)
tree523838d8adc14a62f846529ee6eab3343b2fe87b /dbaccess/source/ui/dlg/ConnectionHelper.cxx
parent46a27805fb707544a844a961a3743b8b992282f0 (diff)
Convert vcl Button Link<> click handler to typed Link<Button*,void>
Change-Id: Ie80dfb003118d40741549c41ebcc7eda4819f05b
Diffstat (limited to 'dbaccess/source/ui/dlg/ConnectionHelper.cxx')
-rw-r--r--dbaccess/source/ui/dlg/ConnectionHelper.cxx16
1 files changed, 6 insertions, 10 deletions
diff --git a/dbaccess/source/ui/dlg/ConnectionHelper.cxx b/dbaccess/source/ui/dlg/ConnectionHelper.cxx
index 24d1ebd66871..a28fd3a9b402 100644
--- a/dbaccess/source/ui/dlg/ConnectionHelper.cxx
+++ b/dbaccess/source/ui/dlg/ConnectionHelper.cxx
@@ -164,7 +164,7 @@ namespace dbaui
m_pAdminDialog->enableConfirmSettings( !getURLNoPrefix().isEmpty() );
}
- IMPL_LINK(OConnectionHelper, OnBrowseConnections, PushButton*, /*_pButton*/)
+ IMPL_LINK_NOARG_TYPED(OConnectionHelper, OnBrowseConnections, Button*, void)
{
OSL_ENSURE(m_pAdminDialog,"No Admin dialog set! ->GPF");
const ::dbaccess::DATASOURCE_TYPE eType = m_pCollection->determineType(m_eType);
@@ -185,7 +185,7 @@ namespace dbaui
xFolderPicker->setDisplayDirectory(sOldPath);
if (0 == xFolderPicker->execute())
// cancelled by the user
- return 0L;
+ return;
sOldPath = xFolderPicker->getDirectory();
switch (checkPathExistence(sOldPath))
@@ -194,7 +194,7 @@ namespace dbaui
bDoBrowse = true;
break;
case RET_CANCEL:
- return 0L;
+ return;
default:
break;
}
@@ -265,7 +265,7 @@ namespace dbaui
callModifiedHdl();
}
else
- return 1L;
+ return;
}
break;
#ifdef _ADO_DATALINK_BROWSE_
@@ -282,7 +282,7 @@ namespace dbaui
callModifiedHdl();
}
else
- return 1L;
+ return;
}
break;
#endif
@@ -337,11 +337,9 @@ namespace dbaui
}
checkTestConnection();
-
- return 0L;
}
- IMPL_LINK(OConnectionHelper, OnCreateDatabase, PushButton*, /*_pButton*/)
+ IMPL_LINK_NOARG_TYPED(OConnectionHelper, OnCreateDatabase, Button*, void)
{
OSL_ENSURE(m_pAdminDialog,"No Admin dialog set! ->GPF");
const ::dbaccess::DATASOURCE_TYPE eType = m_pCollection->determineType(m_eType);
@@ -363,8 +361,6 @@ namespace dbaui
}
checkTestConnection();
-
- return 0L;
}
bool OConnectionHelper::checkTestConnection()