diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-12-17 15:21:22 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-12-17 15:21:26 +0000 |
commit | 818d93f1db1222fe40420139c9e263ca7b3a147e (patch) | |
tree | 24c3130848af74872d9afc6c0e53e438ffd4fe87 /forms | |
parent | 2ac7558242d3c3bca670f8ef0bd1bdb132f2d304 (diff) |
more !HAVE_FEATURE_DBCONNECTIVITY build fixing
Change-Id: I1f949c29020c498200decdac487e0519f48a4142
Diffstat (limited to 'forms')
-rw-r--r-- | forms/source/component/errorbroadcaster.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/forms/source/component/errorbroadcaster.cxx b/forms/source/component/errorbroadcaster.cxx index e619d0952401..ad6313d156e4 100644 --- a/forms/source/component/errorbroadcaster.cxx +++ b/forms/source/component/errorbroadcaster.cxx @@ -20,7 +20,7 @@ #include "errorbroadcaster.hxx" #include <connectivity/dbtools.hxx> #include <com/sun/star/sdb/SQLContext.hpp> - +#include <config_features.h> namespace frm { @@ -61,9 +61,11 @@ namespace frm void SAL_CALL OErrorBroadcaster::onError( const SQLException& _rException, const OUString& _rContextDescription ) { Any aError; +#if HAVE_FEATURE_DBCONNECTIVITY if ( !_rContextDescription.isEmpty() ) aError = makeAny( prependErrorInfo( _rException, static_cast< XSQLErrorBroadcaster* >( this ), _rContextDescription ) ); else +#endif aError = makeAny( _rException ); onError( SQLErrorEvent( static_cast< XSQLErrorBroadcaster* >( this ), aError ) ); @@ -74,7 +76,6 @@ namespace frm { if ( m_aErrorListeners.getLength() ) { - ::comphelper::OInterfaceIteratorHelper2 aIter( m_aErrorListeners ); while ( aIter.hasMoreElements() ) static_cast< XSQLErrorListener* >( aIter.next() )->errorOccured( _rError ); |