summaryrefslogtreecommitdiff
path: root/connectivity/source/commontools/dbexception.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/source/commontools/dbexception.cxx')
-rw-r--r--connectivity/source/commontools/dbexception.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/connectivity/source/commontools/dbexception.cxx b/connectivity/source/commontools/dbexception.cxx
index e266a5a83d4f..e79f0dda4d49 100644
--- a/connectivity/source/commontools/dbexception.cxx
+++ b/connectivity/source/commontools/dbexception.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.
@@ -220,7 +221,7 @@ void SQLExceptionInfo::prepend( const ::rtl::OUString& _rErrorMessage, const sal
SQLException aException;
aException.Message = _rErrorMessage;
aException.ErrorCode = _nErrorCode;
- aException.SQLState = ::rtl::OUString::createFromAscii( _pAsciiSQLState ? _pAsciiSQLState : "S1000" );
+ aException.SQLState = _pAsciiSQLState ? ::rtl::OUString::createFromAscii( _pAsciiSQLState ) : ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "S1000" ));
aException.NextException = m_aContent;
m_aContent <<= aException;
@@ -238,7 +239,7 @@ void SQLExceptionInfo::append( TYPE _eType, const ::rtl::OUString& _rErrorMessag
case SQL_WARNING: aAppend <<= SQLWarning(); break;
case SQL_CONTEXT: aAppend <<= SQLContext(); break;
default:
- OSL_ENSURE( false, "SQLExceptionInfo::append: invalid exception type: this will crash!" );
+ OSL_FAIL( "SQLExceptionInfo::append: invalid exception type: this will crash!" );
break;
}
@@ -562,3 +563,4 @@ const sal_Char* getStandardSQLStateAscii( StandardSQLState _eState )
//.........................................................................
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */