From f796ed6d917eb9aecaf2d832df8ea459bcd41de9 Mon Sep 17 00:00:00 2001 From: Andreas Bille Date: Thu, 10 May 2001 14:25:10 +0000 Subject: *** empty log message *** --- xmlhelp/source/cxxhelp/db/Block.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'xmlhelp/source/cxxhelp/db/Block.cxx') diff --git a/xmlhelp/source/cxxhelp/db/Block.cxx b/xmlhelp/source/cxxhelp/db/Block.cxx index 3f91ec9b2679..a9282a3edc44 100644 --- a/xmlhelp/source/cxxhelp/db/Block.cxx +++ b/xmlhelp/source/cxxhelp/db/Block.cxx @@ -2,9 +2,9 @@ * * $RCSfile: Block.cxx,v $ * - * $Revision: 1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: abi $ $Date: 2001-05-08 11:54:54 $ + * last change: $Author: abi $ $Date: 2001-05-10 15:25:10 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -85,6 +85,7 @@ Block::Block( const DBEnv* dbenv ) isLeaf_( true ), free_( 0 ), num_( 0 ), + dataL_( dbenv->getDataLen() ), data_( new sal_Int8[ dbenv->getDataLen() ] ) { } @@ -138,7 +139,8 @@ sal_Int32 Block::getInteger( sal_Int32 i ) const throw( excep::IllegalIndexExcep throw excep::IllegalIndexException( rtl::OUString::createFromAscii( "Block::setInteger -> index out of range" ) ); - return ::getInteger_( &data_[i] ); + sal_Int32 ret = ::getInteger_( &data_[i] ); + return ret; } -- cgit