summaryrefslogtreecommitdiff
path: root/xmlhelp
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2006-06-19 23:42:09 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2006-06-19 23:42:09 +0000
commit0dc6b87166c656cff301d3afccd2d5c13f02fac4 (patch)
tree821575abf84b105c21c5cfc5748771b9104b346f /xmlhelp
parente61146cda46361dd0c44ca6a28722dd37edbcb77 (diff)
INTEGRATION: CWS warnings01 (1.6.18); FILE MERGED
2006/06/02 09:35:08 abi 1.6.18.2: #i65894# corrected ifdefs 2005/12/15 16:36:47 ab 1.6.18.1: #i53898# Removed warnings for unxlngi6/unxlngi6.pro
Diffstat (limited to 'xmlhelp')
-rw-r--r--xmlhelp/source/cxxhelp/util/IndexAccessor.cxx12
1 files changed, 9 insertions, 3 deletions
diff --git a/xmlhelp/source/cxxhelp/util/IndexAccessor.cxx b/xmlhelp/source/cxxhelp/util/IndexAccessor.cxx
index 944f74dc95eb..326c6a0df278 100644
--- a/xmlhelp/source/cxxhelp/util/IndexAccessor.cxx
+++ b/xmlhelp/source/cxxhelp/util/IndexAccessor.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: IndexAccessor.cxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: rt $ $Date: 2005-09-09 12:25:50 $
+ * last change: $Author: hr $ $Date: 2006-06-20 00:42:09 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -70,9 +70,15 @@ public:
virtual sal_Int32 readBytes( sal_Int8* data,sal_Int32 num )
{
sal_uInt64 nbytesread;
- osl::FileBase::RC err = file_.read( (void*)(data), sal_uInt64(num),nbytesread );
+
+#ifdef DBG_UTIL
+ osl::FileBase::RC err =
+ file_.read( (void*)(data), sal_uInt64(num),nbytesread );
OSL_ENSURE( err == osl::FileBase::E_None, "RandomAccessStreamImpl::readBytes: -> file not open" );
+#else
+ file_.read( (void*)(data), sal_uInt64(num),nbytesread );
+#endif
return sal_Int32( nbytesread );
}