summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-08-12 10:17:16 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-08-12 11:51:11 +0100
commit58ee09b87b11a6a6b56a06f772214e8835810bd3 (patch)
tree3dba493131b4b9fd670057b8df826bfbbb41fe23 /dbaccess
parent7bd0fb7d7c0926575d8a7ec5ea2e4a7867f9f8dd (diff)
ByteString, shrink api
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/browser/exsrcbrw.cxx7
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());
}
}
}