summaryrefslogtreecommitdiff
path: root/forms/source/component/Filter.cxx
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2006-06-19 11:49:06 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2006-06-19 11:49:06 +0000
commitf795a1cd5cfb22cfddc388126d461d7b74661b8a (patch)
tree3476e6a9bb44c578eced2d33adb2f9c3e37e8b4d /forms/source/component/Filter.cxx
parente2deec4229d33c51adb509074d7a6d8b6de11584 (diff)
INTEGRATION: CWS warnings01 (1.6.68); FILE MERGED
2006/03/14 15:20:26 fs 1.6.68.1: #i57457# warning-free code
Diffstat (limited to 'forms/source/component/Filter.cxx')
-rw-r--r--forms/source/component/Filter.cxx31
1 files changed, 19 insertions, 12 deletions
diff --git a/forms/source/component/Filter.cxx b/forms/source/component/Filter.cxx
index 8025c95afae5..f6edbecc90c3 100644
--- a/forms/source/component/Filter.cxx
+++ b/forms/source/component/Filter.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: Filter.cxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: rt $ $Date: 2005-09-08 22:39:19 $
+ * last change: $Author: hr $ $Date: 2006-06-19 12:48:43 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -111,6 +111,9 @@
#ifndef _UNOTOOLS_LOCALEDATAWRAPPER_HXX
#include <unotools/localedatawrapper.hxx>
#endif
+#ifndef TOOLS_DIAGNOSE_EX_H
+#include <tools/diagnose_ex.h>
+#endif
#ifndef _TOOLKIT_HELPER_VCLUNOHELPER_HXX_
#include <toolkit/helper/vclunohelper.hxx>
#endif
@@ -174,12 +177,12 @@ namespace frm
//---------------------------------------------------------------------
OFilterControl::OFilterControl( const Reference< XMultiServiceFactory >& _rxORB )
:m_aTextListeners( *this )
+ ,m_xORB( _rxORB )
+ ,m_aParser( _rxORB )
+ ,m_nControlClass( FormComponentType::TEXTFIELD )
,m_bFilterList( sal_False )
,m_bMultiLine( sal_False )
- ,m_nControlClass( FormComponentType::TEXTFIELD )
,m_bFilterListFilled( sal_False )
- ,m_xORB( _rxORB )
- ,m_aParser( _rxORB )
{
}
@@ -252,7 +255,7 @@ namespace frm
sal_Int64 OFilterControl::getSomething( const Sequence< sal_Int8 > & rId )
{
if( rId.getLength() == 16 && 0 == rtl_compareMemory( getUnoTunnelId().getConstArray(), rId.getConstArray(), 16 ) )
- return (sal_Int64)this;
+ return reinterpret_cast< sal_Int64 >( this );
return 0;
}
@@ -541,10 +544,10 @@ namespace frm
sal_Bool bUseCatalogInSelect = ::dbtools::isDataSourcePropertyEnabled(xConnection,::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("UseCatalogInSelect")),sal_True);
sal_Bool bUseSchemaInSelect = ::dbtools::isDataSourcePropertyEnabled(xConnection,::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("UseSchemaInSelect")),sal_True);
aStatement.append( ::dbtools::quoteTableName( xMeta, sTableName, ::dbtools::eInDataManipulation ,bUseCatalogInSelect,bUseSchemaInSelect) );
- ::rtl::OUString sStatement( aStatement.makeStringAndClear( ) );
+ ::rtl::OUString sSelectStatement( aStatement.makeStringAndClear( ) );
xStatement = xConnection->createStatement();
- xListCursor = xStatement->executeQuery( sStatement );
+ xListCursor = xStatement->executeQuery( sSelectStatement );
Reference< XColumnsSupplier > xSupplyCols(xListCursor, UNO_QUERY);
Reference< XIndexAccess > xFields;
@@ -599,10 +602,9 @@ namespace frm
}
}
}
- catch( const Exception& e )
+ catch( const Exception& )
{
- e; // make compiler happy
- OSL_ENSURE( sal_False, "OFilterControl::implInitFilterList: caught an exception!" );
+ DBG_UNHANDLED_EXCEPTION();
}
::comphelper::disposeComponent( xListCursor );
@@ -611,7 +613,7 @@ namespace frm
// XFocusListener
//---------------------------------------------------------------------
- void SAL_CALL OFilterControl::focusGained(const FocusEvent& e) throw( RuntimeException )
+ void SAL_CALL OFilterControl::focusGained(const FocusEvent& /*e*/) throw( RuntimeException )
{
// should we fill the combobox?
if (m_bFilterList && !m_bFilterListFilled)
@@ -619,6 +621,11 @@ namespace frm
}
//---------------------------------------------------------------------
+ void SAL_CALL OFilterControl::focusLost(const FocusEvent& /*e*/) throw( RuntimeException )
+ {
+ }
+
+ //---------------------------------------------------------------------
sal_Bool SAL_CALL OFilterControl::commit() throw(RuntimeException)
{
if ( !ensureInitialized( ) )