Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


Hello,

I found out that on make -sr debug=true dbglevel=2 dbaccess did not compile successfully, the problem is with xmlfilter.cxx, it uses OStringBuffer, but there is no include to use it, so cxx says: "OStringBuffer is not a member of rtl namespace" I did the include, and the build works fine, I must notice that it only appears in debug version making, as the code is behind a DBGLEVEL>1 macro. I send the patch to fix it in the attachement, please add it to all the sources.

Gabor Jenei
From 4d1b1789ff14c26bb23f49adfaad6e95991af25c Mon Sep 17 00:00:00 2001
From: Gabor Jenei <jengab@elte.hu>
Date: Mon, 8 Aug 2011 19:49:20 +0200
Subject: [PATCH] patch for xmlfilter.cxx

---
 dbaccess/source/filter/xml/xmlfilter.cxx |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dbaccess/source/filter/xml/xmlfilter.cxx b/dbaccess/source/filter/xml/xmlfilter.cxx
index 383fc29..933f9cd 100644
--- a/dbaccess/source/filter/xml/xmlfilter.cxx
+++ b/dbaccess/source/filter/xml/xmlfilter.cxx
@@ -76,6 +76,7 @@
 #include <connectivity/CommonTools.hxx>
 #include <connectivity/DriversConfig.hxx>
 #include "dsntypes.hxx"
+#include <rtl/strbuf.hxx>
 
 using namespace ::com::sun::star;
 
@@ -269,7 +270,7 @@ sal_Int32 ReadThroughComponent(
     catch (const SAXParseException& r)
     {
 #if OSL_DEBUG_LEVEL > 1
-        rtl::OStringBuffer aError(RTL_CONSTASCII_STRINGPARAM(
+        ::rtl::OStringBuffer aError(RTL_CONSTASCII_STRINGPARAM(
             "SAX parse exception catched while importing:\n"));
         aError.append(rtl::OUStringToOString(r.Message,
             RTL_TEXTENCODING_ASCII_US));
-- 
1.7.2.5


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.