diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-08-12 10:17:16 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-08-12 11:51:11 +0100 |
commit | 58ee09b87b11a6a6b56a06f772214e8835810bd3 (patch) | |
tree | 3dba493131b4b9fd670057b8df826bfbbb41fe23 /dbaccess | |
parent | Related: rhbz#730225 avoid segv in ld, this was set to -O0 around 2000 (diff) | |
download | core-58ee09b87b11a6a6b56a06f772214e8835810bd3.tar.gz core-58ee09b87b11a6a6b56a06f772214e8835810bd3.zip |
ByteString, shrink api
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/browser/exsrcbrw.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/dbaccess/source/ui/browser/exsrcbrw.cxx b/dbaccess/source/ui/browser/exsrcbrw.cxx index 898f78cd3ebe..a77874dba461 100644 --- a/dbaccess/source/ui/browser/exsrcbrw.cxx +++ b/dbaccess/source/ui/browser/exsrcbrw.cxx @@ -40,6 +40,7 @@ #include "dbustrings.hrc" #include "dbu_reghelper.hxx" #include <tools/diagnose_ex.h> +#include <rtl/strbuf.hxx> using namespace ::com::sun::star::uno; using namespace ::com::sun::star::sdb; @@ -211,11 +212,9 @@ void SAL_CALL SbaExternalSourceBrowser::dispatch(const ::com::sun::star::util::U if (xNewColProperties->hasPropertyByName(pControlProps->Name)) xNewCol->setPropertyValue(pControlProps->Name, pControlProps->Value); } - catch(Exception&) + catch (const Exception&) { - OSL_FAIL(( ByteString("SbaExternalSourceBrowser::dispatch : could not set a column property (") - += ByteString(pControlProps->Name.getStr(), (sal_uInt16)pControlProps->Name.getLength(), RTL_TEXTENCODING_ASCII_US) - += ByteString(")!")).GetBuffer()); + OSL_FAIL(rtl::OStringBuffer(RTL_CONSTASCII_STRINGPARAM("SbaExternalSourceBrowser::dispatch : could not set a column property (")).append(rtl::OUStringToOString(pControlProps->Name, RTL_TEXTENCODING_ASCII_US)).append(RTL_CONSTASCII_STRINGPARAM(")!")).getStr()); } } } |