From 8c310b36f09984fcc6c31efccbe90ffa798ede6d Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Tue, 9 Jun 2009 20:41:04 +0000 Subject: [PATCH] Provide a default value for the leaf argument as is done in the const char * versions of the constructor/setter. This is consistent with the Be Book, though R5 and/or Dano's headers were likewise missing this. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31001 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/os/storage/Path.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/headers/os/storage/Path.h b/headers/os/storage/Path.h index 0e27303b0f..13438a40f9 100644 --- a/headers/os/storage/Path.h +++ b/headers/os/storage/Path.h @@ -25,7 +25,8 @@ public: BPath(const BEntry* entry); BPath(const char* dir, const char* leaf = NULL, bool normalize = false); - BPath(const BDirectory* dir, const char* leaf, + BPath(const BDirectory* dir, + const char* leaf = NULL, bool normalize = false); virtual ~BPath(); @@ -36,7 +37,8 @@ public: status_t SetTo(const BEntry* entry); status_t SetTo(const char* path, const char* leaf = NULL, bool normalize = false); - status_t SetTo(const BDirectory* dir, const char* path, + status_t SetTo(const BDirectory* dir, + const char* leaf = NULL, bool normalize = false); void Unset();