summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/dlg/ConnectionHelper.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'dbaccess/source/ui/dlg/ConnectionHelper.cxx')
-rw-r--r--dbaccess/source/ui/dlg/ConnectionHelper.cxx14
1 files changed, 5 insertions, 9 deletions
diff --git a/dbaccess/source/ui/dlg/ConnectionHelper.cxx b/dbaccess/source/ui/dlg/ConnectionHelper.cxx
index 3a16604e8544..5911c6e0eb88 100644
--- a/dbaccess/source/ui/dlg/ConnectionHelper.cxx
+++ b/dbaccess/source/ui/dlg/ConnectionHelper.cxx
@@ -60,14 +60,10 @@
#include <tools/diagnose_ex.h>
#include <sfx2/docfilt.hxx>
-#if defined(_WIN32)
-#define _ADO_DATALINK_BROWSE_
-#endif
-
-#ifdef _ADO_DATALINK_BROWSE_
+#if defined _WIN32
#include <vcl/sysdata.hxx>
#include "adodatalinks.hxx"
-#endif //_ADO_DATALINK_BROWSE_
+#endif
#include <com/sun/star/mozilla/XMozillaBootstrap.hpp>
#include <comphelper/processfactory.hxx>
@@ -266,17 +262,17 @@ namespace dbaui
return;
}
break;
-#ifdef _ADO_DATALINK_BROWSE_
+#if defined _WIN32
case ::dbaccess::DST_ADO:
{
OUString sOldDataSource=getURLNoPrefix();
OUString sNewDataSource;
HWND hWnd = GetParent()->GetSystemData()->hWnd;
- sNewDataSource = getAdoDatalink((LONG_PTR)hWnd,sOldDataSource);
+ sNewDataSource = getAdoDatalink(reinterpret_cast<LONG_PTR>(hWnd),sOldDataSource);
if ( !sNewDataSource.isEmpty() )
{
setURLNoPrefix(sNewDataSource);
- SetRoadmapStateValue(sal_True);
+ SetRoadmapStateValue(true);
callModifiedHdl();
}
else