diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-20 02:07:09 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-20 02:07:09 +0000 |
commit | 6a4f3a9a39a273dbb5410109dc3809bac88b4c49 (patch) | |
tree | 8f82544296fc540347772c82e79f22a14117d88a /dbaccess/source/ui/dlg/directsql.cxx | |
parent | INTEGRATION: CWS warnings01 (1.23.48); FILE MERGED (diff) | |
download | core-6a4f3a9a39a273dbb5410109dc3809bac88b4c49.tar.gz core-6a4f3a9a39a273dbb5410109dc3809bac88b4c49.zip |
INTEGRATION: CWS warnings01 (1.5.74); FILE MERGED
2006/03/24 15:36:11 fs 1.5.74.1: #i57457# warning-free code (unxlngi6/.pro + unxsoli4.pro)
Diffstat (limited to 'dbaccess/source/ui/dlg/directsql.cxx')
-rw-r--r-- | dbaccess/source/ui/dlg/directsql.cxx | 35 |
1 files changed, 17 insertions, 18 deletions
diff --git a/dbaccess/source/ui/dlg/directsql.cxx b/dbaccess/source/ui/dlg/directsql.cxx index 110ae95acf9f..1ccf6b3244d1 100644 --- a/dbaccess/source/ui/dlg/directsql.cxx +++ b/dbaccess/source/ui/dlg/directsql.cxx @@ -4,9 +4,9 @@ * * $RCSfile: directsql.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: hr $ $Date: 2005-09-23 12:30:12 $ + * last change: $Author: hr $ $Date: 2006-06-20 03:07:09 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -156,21 +156,20 @@ DBG_NAME(DirectSQLDialog) //-------------------------------------------------------------------- void DirectSQLDialog::_disposing( const EventObject& _rSource ) { - { - ::vos::OGuard aSolarGuard(Application::GetSolarMutex()); - ::osl::MutexGuard aGuard(m_aMutex); - - OSL_ENSURE(Reference< XConnection >(_rSource.Source, UNO_QUERY).get() == m_xConnection.get(), - "DirectSQLDialog::_disposing: where does this come from?"); + ::vos::OGuard aSolarGuard(Application::GetSolarMutex()); + ::osl::MutexGuard aGuard(m_aMutex); - { - String sMessage(ModuleRes(STR_DIRECTSQL_CONNECTIONLOST)); - ErrorBox aError(this, WB_OK, sMessage); - aError.Execute(); - } + OSL_ENSURE(Reference< XConnection >(_rSource.Source, UNO_QUERY).get() == m_xConnection.get(), + "DirectSQLDialog::_disposing: where does this come from?"); + (void)_rSource; - PostUserEvent(LINK(this, DirectSQLDialog, OnClose)); + { + String sMessage(ModuleRes(STR_DIRECTSQL_CONNECTIONLOST)); + ErrorBox aError(this, WB_OK, sMessage); + aError.Execute(); } + + PostUserEvent(LINK(this, DirectSQLDialog, OnClose)); } //-------------------------------------------------------------------- @@ -351,28 +350,28 @@ DBG_NAME(DirectSQLDialog) } //-------------------------------------------------------------------- - IMPL_LINK( DirectSQLDialog, OnStatementModified, void*, NOTINTERESTEDIN ) + IMPL_LINK( DirectSQLDialog, OnStatementModified, void*, /*NOTINTERESTEDIN*/ ) { m_aExecute.Enable(0 != m_aSQL.GetText().Len()); return 0L; } //-------------------------------------------------------------------- - IMPL_LINK( DirectSQLDialog, OnClose, void*, NOTINTERESTEDIN ) + IMPL_LINK( DirectSQLDialog, OnClose, void*, /*NOTINTERESTEDIN*/ ) { EndDialog( RET_OK ); return 0L; } //-------------------------------------------------------------------- - IMPL_LINK( DirectSQLDialog, OnExecute, void*, NOTINTERESTEDIN ) + IMPL_LINK( DirectSQLDialog, OnExecute, void*, /*NOTINTERESTEDIN*/ ) { executeCurrent(); return 0L; } //-------------------------------------------------------------------- - IMPL_LINK( DirectSQLDialog, OnListEntrySelected, void*, NOTINTERESTEDIN ) + IMPL_LINK( DirectSQLDialog, OnListEntrySelected, void*, /*NOTINTERESTEDIN*/ ) { if (!m_pSQLHistory->IsTravelSelect()) { |