diff options
Diffstat (limited to 'dbaccess/source/ui/dlg/adodatalinks.cxx')
-rw-r--r-- | dbaccess/source/ui/dlg/adodatalinks.cxx | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/dbaccess/source/ui/dlg/adodatalinks.cxx b/dbaccess/source/ui/dlg/adodatalinks.cxx index a0f0365fb22b..21f806db613a 100644 --- a/dbaccess/source/ui/dlg/adodatalinks.cxx +++ b/dbaccess/source/ui/dlg/adodatalinks.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -71,14 +71,14 @@ BSTR PromptNew(long hWnd) // Initialize COM ::CoInitialize( NULL ); - + // Instantiate DataLinks object. hr = CoCreateInstance( - CLSID_DataLinks, //clsid -- Data Links UI - NULL, //pUnkOuter - CLSCTX_INPROC_SERVER, //dwClsContext - IID_IDataSourceLocator, //riid - (void**)&dlPrompt //ppvObj + CLSID_DataLinks, //clsid -- Data Links UI + NULL, //pUnkOuter + CLSCTX_INPROC_SERVER, //dwClsContext + IID_IDataSourceLocator, //riid + (void**)&dlPrompt //ppvObj ); if( FAILED( hr ) ) { @@ -86,7 +86,7 @@ BSTR PromptNew(long hWnd) dlPrompt->Release( ); return connstr; } - + dlPrompt->put_hWnd(hWnd); if( FAILED( hr ) ) { @@ -98,7 +98,7 @@ BSTR PromptNew(long hWnd) // Prompt for connection information. hr = dlPrompt->PromptNew((IDispatch **)&piTmpConnection); - if( FAILED( hr ) || !piTmpConnection ) + if( FAILED( hr ) || !piTmpConnection ) { dlPrompt->Release( ); return connstr; @@ -128,7 +128,7 @@ BSTR PromptEdit(long hWnd,BSTR connstr) // Initialize COM ::CoInitialize( NULL ); - hr = CoCreateInstance(CLSID_CADOConnection, + hr = CoCreateInstance(CLSID_CADOConnection, NULL, CLSCTX_INPROC_SERVER, IID_IADOConnection, @@ -139,21 +139,21 @@ BSTR PromptEdit(long hWnd,BSTR connstr) return connstr; } - + hr = piTmpConnection->put_ConnectionString(connstr); if( FAILED( hr ) ) { piTmpConnection->Release( ); return connstr; } - + // Instantiate DataLinks object. hr = CoCreateInstance( - CLSID_DataLinks, //clsid -- Data Links UI - NULL, //pUnkOuter - CLSCTX_INPROC_SERVER, //dwClsContext - IID_IDataSourceLocator, //riid - (void**)&dlPrompt //ppvObj + CLSID_DataLinks, //clsid -- Data Links UI + NULL, //pUnkOuter + CLSCTX_INPROC_SERVER, //dwClsContext + IID_IDataSourceLocator, //riid + (void**)&dlPrompt //ppvObj ); if( FAILED( hr ) ) { @@ -161,7 +161,7 @@ BSTR PromptEdit(long hWnd,BSTR connstr) dlPrompt->Release( ); return connstr; } - + dlPrompt->put_hWnd(hWnd); if( FAILED( hr ) ) { @@ -171,7 +171,7 @@ BSTR PromptEdit(long hWnd,BSTR connstr) } VARIANT_BOOL pbSuccess; - + // Prompt for connection information. hr = dlPrompt->PromptEdit((IDispatch **)&piTmpConnection,&pbSuccess); if( SUCCEEDED( hr ) && FALSE == pbSuccess ) //if user press cancel then FALSE == pbSuccess @@ -181,7 +181,7 @@ BSTR PromptEdit(long hWnd,BSTR connstr) return connstr; } - if( FAILED( hr ) ) + if( FAILED( hr ) ) { // Prompt for new connection information. piTmpConnection->Release( ); |