From 0dc6b87166c656cff301d3afccd2d5c13f02fac4 Mon Sep 17 00:00:00 2001 From: Jens-Heiner Rechtien Date: Mon, 19 Jun 2006 23:42:09 +0000 Subject: 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 --- xmlhelp/source/cxxhelp/util/IndexAccessor.cxx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'xmlhelp') 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 ); } -- cgit