Kaydet (Commit) 818d93f1 authored tarafından Caolán McNamara's avatar Caolán McNamara

more !HAVE_FEATURE_DBCONNECTIVITY build fixing

Change-Id: I1f949c29020c498200decdac487e0519f48a4142
üst 2ac75582
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment