summaryrefslogtreecommitdiffstats
path: root/connectivity/source
diff options
context:
space:
mode:
authorGert Faller <gertfaller@aliceadsl.fr>2010-11-21 15:43:10 +0100
committerGert Faller <gertfaller@aliceadsl.fr>2010-11-21 15:43:10 +0100
commit3c5dfbfaff63d25a10807ea6314a05e799645433 (patch)
tree7cd23b7ac5aae7caeb8c06adf6a233fcaca88eb9 /connectivity/source
parentRRTL_CONSTASCII_USTRINGPARAM in libs core 42 (diff)
downloadcore-3c5dfbfaff63d25a10807ea6314a05e799645433.tar.gz
core-3c5dfbfaff63d25a10807ea6314a05e799645433.zip
RTL_CONSTASCII_USTRINGPARAM in libs core 43
Diffstat (limited to 'connectivity/source')
-rw-r--r--connectivity/source/commontools/dbexception.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/connectivity/source/commontools/dbexception.cxx b/connectivity/source/commontools/dbexception.cxx
index 60addf14828c..ea96f9cb0c9e 100644
--- a/connectivity/source/commontools/dbexception.cxx
+++ b/connectivity/source/commontools/dbexception.cxx
@@ -221,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;