summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2011-12-11 16:36:38 +0100
committerJulien Nabet <serval2412@yahoo.fr>2011-12-11 16:36:38 +0100
commit15f8fce9860100505c4c6a54f5f003375fbd8275 (patch)
treec54da9946a1a71584f4e228e9461ce3681235128 /dbaccess
parent7866954ac27c15146ce76adeba5c94d147d32d94 (diff)
Remove ByteString
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/dlg/directsql.cxx3
-rw-r--r--dbaccess/source/ui/inc/directsql.hxx2
2 files changed, 4 insertions, 1 deletions
diff --git a/dbaccess/source/ui/dlg/directsql.cxx b/dbaccess/source/ui/dlg/directsql.cxx
index f0d6f0dfa7b1..e650fb3ded9b 100644
--- a/dbaccess/source/ui/dlg/directsql.cxx
+++ b/dbaccess/source/ui/dlg/directsql.cxx
@@ -36,6 +36,7 @@
#include <vcl/svapp.hxx>
#include <osl/mutex.hxx>
#include <tools/diagnose_ex.h>
+#include <rtl/strbuf.hxx>
//........................................................................
namespace dbaui
@@ -46,6 +47,8 @@ namespace dbaui
using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::lang;
+ using ::rtl::OStringBuffer;
+
//====================================================================
//= LargeEntryListBox
//====================================================================
diff --git a/dbaccess/source/ui/inc/directsql.hxx b/dbaccess/source/ui/inc/directsql.hxx
index 250c667166be..96c2ebc3f263 100644
--- a/dbaccess/source/ui/inc/directsql.hxx
+++ b/dbaccess/source/ui/inc/directsql.hxx
@@ -126,7 +126,7 @@ namespace dbaui
{ \
const sal_Char* pError = impl_CheckInvariants(); \
if (pError) \
- OSL_FAIL((ByteString(methodname) += ByteString(": ") += ByteString(pError)).GetBuffer()); \
+ OSL_FAIL(rtl::OStringBuffer(methodname).append(": ").append(pError). makeStringAndClear().getStr()); \
}
#else
#define CHECK_INVARIANTS(methodname)