mirror of
https://review.haiku-os.org/haiku
synced 2025-01-22 06:16:03 +01:00
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:
parent
47550b1e72
commit
40467b5bd1
@ -524,15 +524,8 @@ BEntry::GetPath(BPath *path) const
|
||||
|
||||
if (path == NULL)
|
||||
return B_BAD_VALUE;
|
||||
|
||||
entry_ref ref;
|
||||
status_t status;
|
||||
|
||||
status = GetRef(&ref);
|
||||
if (status != B_OK)
|
||||
return status;
|
||||
|
||||
return path->SetTo(&ref);
|
||||
|
||||
return path->SetTo(this);
|
||||
}
|
||||
|
||||
/*! \brief Gets the parent of the BEntry as another BEntry.
|
||||
|
Loading…
x
Reference in New Issue
Block a user