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:
@@ -40,12 +40,14 @@ OpenWithTracker(const char* path)
|
|||||||
|
|
||||||
|
|
||||||
status_t
|
status_t
|
||||||
OpenWithTracker(directory_which which, const char* relativePath,
|
OpenWithTracker(directory_which which, const char* relativePath = NULL,
|
||||||
bool createDirectory = false, BVolume* volume = NULL)
|
bool createDirectory = false, BVolume* volume = NULL)
|
||||||
{
|
{
|
||||||
status_t status;
|
status_t status;
|
||||||
BPath path;
|
BPath path;
|
||||||
find_directory(which, &path, createDirectory, volume);
|
find_directory(which, &path, createDirectory, volume);
|
||||||
|
|
||||||
|
if (relativePath)
|
||||||
path.Append(relativePath);
|
path.Append(relativePath);
|
||||||
|
|
||||||
entry_ref ref;
|
entry_ref ref;
|
||||||
|
|||||||
Reference in New Issue
Block a user