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
This commit is contained in:
parent
50977465d0
commit
8c310b36f0
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user