From 6dcce65687bc9f6dd7581514497de3d3f8ddd663 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Wed, 17 Sep 2008 09:15:48 +0000 Subject: [PATCH] port the changes made to the libbe counterpart (r27297 and r27485) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27594 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/build/private/storage/OffsetFile.h | 2 +- src/build/libbe/storage/OffsetFile.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/headers/build/private/storage/OffsetFile.h b/headers/build/private/storage/OffsetFile.h index 35cab07d91..4f375b7cc0 100644 --- a/headers/build/private/storage/OffsetFile.h +++ b/headers/build/private/storage/OffsetFile.h @@ -49,7 +49,7 @@ public: off_t Position() const; status_t SetSize(off_t size); - status_t GetSize(off_t *size); + status_t GetSize(off_t *size) const; off_t Offset() const; diff --git a/src/build/libbe/storage/OffsetFile.cpp b/src/build/libbe/storage/OffsetFile.cpp index 10e41b7e15..b21b4e88a2 100644 --- a/src/build/libbe/storage/OffsetFile.cpp +++ b/src/build/libbe/storage/OffsetFile.cpp @@ -16,7 +16,7 @@ namespace Storage { // constructor OffsetFile::OffsetFile() - : fFile(), + : fFile(NULL), fOffset(0), fCurrentPosition(0) { @@ -145,7 +145,7 @@ OffsetFile::SetSize(off_t size) // GetSize status_t -OffsetFile::GetSize(off_t *size) +OffsetFile::GetSize(off_t *size) const { status_t error = (size ? B_OK : B_BAD_VALUE ); if (error == B_OK)