summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/mozab/MConnection.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/source/drivers/mozab/MConnection.cxx')
-rw-r--r--connectivity/source/drivers/mozab/MConnection.cxx14
1 files changed, 9 insertions, 5 deletions
diff --git a/connectivity/source/drivers/mozab/MConnection.cxx b/connectivity/source/drivers/mozab/MConnection.cxx
index 71c65d05ca74..943bb7cc774e 100644
--- a/connectivity/source/drivers/mozab/MConnection.cxx
+++ b/connectivity/source/drivers/mozab/MConnection.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -100,7 +101,7 @@ const sal_Char* getSdbcScheme( SdbcScheme _eScheme )
// -----------------------------------------------------------------------------
::rtl::OUString OConnection::getDriverImplementationName()
{
- return rtl::OUString::createFromAscii(MOZAB_DRIVER_IMPL_NAME);
+ return rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(MOZAB_DRIVER_IMPL_NAME));
}
// -----------------------------------------------------------------------------
@@ -127,6 +128,7 @@ OConnection::OConnection(MozabDriver* _pDriver)
,m_nMaxResultRecords( -1 )
,m_aNameMapper(NULL)
,m_eSDBCAddressType(SDBCAddress::Unknown)
+ ,m_bForceLoadTable(false)
{
m_pDriver->acquire();
@@ -157,7 +159,7 @@ void OConnection::construct(const ::rtl::OUString& url,const Sequence< PropertyV
//
sal_Int32 nLen = url.indexOf(':');
nLen = url.indexOf(':',nLen+1);
- OSL_ENSURE( url.copy( 0, nLen ).equalsAscii( "sdbc:address" ), "OConnection::construct: invalid start of the URI - should never have survived XDriver::acceptsURL!" );
+ OSL_ENSURE( url.copy( 0, nLen ).equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "sdbc:address" ) ), "OConnection::construct: invalid start of the URI - should never have survived XDriver::acceptsURL!" );
::rtl::OUString aAddrbookURI(url.copy(nLen+1));
// Get Scheme
@@ -571,11 +573,11 @@ void OConnection::throwSQLException( const ErrorDescriptor& _rError, const Refer
"$1$", sParameter
) );
::dbtools::throwGenericSQLException( sError, _rxContext );
- OSL_ENSURE( false, "OConnection::throwSQLException: unreachable (1)!" );
+ OSL_FAIL( "OConnection::throwSQLException: unreachable (1)!" );
}
throwGenericSQLException( _rError.getResId(), _rxContext );
- OSL_ENSURE( false, "OConnection::throwSQLException: unreachable (2)!" );
+ OSL_FAIL( "OConnection::throwSQLException: unreachable (2)!" );
}
if ( _rError.getErrorCondition() != 0 )
@@ -586,7 +588,7 @@ void OConnection::throwSQLException( const ErrorDescriptor& _rError, const Refer
aErrorHelper.raiseException( _rError.getErrorCondition(), _rxContext, sParameter );
else
aErrorHelper.raiseException( _rError.getErrorCondition(), _rxContext);
- OSL_ENSURE( false, "OConnection::throwSQLException: unreachable (3)!" );
+ OSL_FAIL( "OConnection::throwSQLException: unreachable (3)!" );
}
throwGenericSQLException( STR_UNSPECIFIED_ERROR, _rxContext );
@@ -601,3 +603,5 @@ void OConnection::throwSQLException( const sal_uInt16 _nErrorResourceId, const R
}
} } // namespace connectivity::mozab
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
304747c595871e97be6f'>Can simplify, our IDL compiler is more clever nowadaysTor Lillqvist 2018-05-31Add window geometry attributes, too, to ooo.vba.word.XApplicationTor Lillqvist 2018-05-31Add Move() to ooo.vba.word.XApplicationTor Lillqvist 2018-05-31Add Resize() method to ooo.vba.word.XApplicationTor Lillqvist 2018-05-31Add a WindowState attribute to ooo.vba.word.XApplication, tooTor Lillqvist 2018-05-31Can simplify, our IDL compiler is more clever nowadaysTor Lillqvist 2018-05-31Add DocumentOpen and NewDocument to XApplicationOutgoing and emit suchTor Lillqvist 2018-05-31Add ooo::vba::word::XDocuments::OpenNoRepairDialog()Tor Lillqvist 2018-05-31Add ooo::vba::word::XApplicationOutgoing::DocumentBeforeClose() callbackTor Lillqvist 2018-05-31Prepare to handle out (and inout) parameters to event callbacksTor Lillqvist 2018-05-31Add Document.Close event generationTor Lillqvist 2018-05-31Add ooo.vba.word.XDocumentOutgoingTor Lillqvist 2018-05-30Work in progress related to invoking events in Automation clientsTor Lillqvist 2018-05-30Add a (dummy) ooo::vba::word::XApplication::ShowMe() implementationTor Lillqvist 2018-05-30Add Caption property to ooo::vba::XApplicationBaseTor Lillqvist 2018-05-30Whitespace fixTor Lillqvist