Explicitly allow not giving a relative path.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33272 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
904acde1c2
commit
0d62f09d74
|
@ -40,13 +40,15 @@ OpenWithTracker(const char* path)
|
|||
|
||||
|
||||
status_t
|
||||
OpenWithTracker(directory_which which, const char* relativePath,
|
||||
OpenWithTracker(directory_which which, const char* relativePath = NULL,
|
||||
bool createDirectory = false, BVolume* volume = NULL)
|
||||
{
|
||||
status_t status;
|
||||
BPath path;
|
||||
find_directory(which, &path, createDirectory, volume);
|
||||
path.Append(relativePath);
|
||||
|
||||
if (relativePath)
|
||||
path.Append(relativePath);
|
||||
|
||||
entry_ref ref;
|
||||
BEntry entry(path.Path());
|
||||
|
|
Loading…
Reference in New Issue