BPath does have a (BEntry *) constructor; there is no need for code duplication here.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8189 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -524,15 +524,8 @@ BEntry::GetPath(BPath *path) const
|
|||||||
|
|
||||||
if (path == NULL)
|
if (path == NULL)
|
||||||
return B_BAD_VALUE;
|
return B_BAD_VALUE;
|
||||||
|
|
||||||
entry_ref ref;
|
return path->SetTo(this);
|
||||||
status_t status;
|
|
||||||
|
|
||||||
status = GetRef(&ref);
|
|
||||||
if (status != B_OK)
|
|
||||||
return status;
|
|
||||||
|
|
||||||
return path->SetTo(&ref);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*! \brief Gets the parent of the BEntry as another BEntry.
|
/*! \brief Gets the parent of the BEntry as another BEntry.
|
||||||
|
|||||||
Reference in New Issue
Block a user