diff --git a/headers/os/storage/File.h b/headers/os/storage/File.h index c30ba6e11d..dd75c192d8 100644 --- a/headers/os/storage/File.h +++ b/headers/os/storage/File.h @@ -37,7 +37,7 @@ public: BFile(const entry_ref *ref, uint32 openMode); BFile(const BEntry *entry, uint32 openMode); BFile(const char *path, uint32 openMode); - BFile(BDirectory *dir, const char *path, uint32 openMode); + BFile(const BDirectory *dir, const char *path, uint32 openMode); virtual ~BFile(); status_t SetTo(const entry_ref *ref, uint32 openMode); diff --git a/src/kits/storage/File.cpp b/src/kits/storage/File.cpp index 5b9dadf343..d69daecadf 100644 --- a/src/kits/storage/File.cpp +++ b/src/kits/storage/File.cpp @@ -94,7 +94,7 @@ BFile::BFile(const char *path, uint32 openMode) \param openMode the mode in which the file should be opened \see SetTo() for values for \a openMode */ -BFile::BFile(BDirectory *dir, const char *path, uint32 openMode) +BFile::BFile(const BDirectory *dir, const char *path, uint32 openMode) : BNode(), BPositionIO(), fMode(0)