summaryrefslogtreecommitdiff
path: root/xmlhelp/source/cxxhelp/db/Block.cxx
diff options
context:
space:
mode:
authorAndreas Bille <abi@openoffice.org>2001-05-10 14:25:10 +0000
committerAndreas Bille <abi@openoffice.org>2001-05-10 14:25:10 +0000
commitf796ed6d917eb9aecaf2d832df8ea459bcd41de9 (patch)
tree7f6f951b5d8128de02f9313a7452c2c6510be5cf /xmlhelp/source/cxxhelp/db/Block.cxx
parent11f9aa4fcb2ad0a5fada8561c7041e7f25a059fc (diff)
*** empty log message ***
Diffstat (limited to 'xmlhelp/source/cxxhelp/db/Block.cxx')
-rw-r--r--xmlhelp/source/cxxhelp/db/Block.cxx8
1 files changed, 5 insertions, 3 deletions
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;
}