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:
Axel Dörfler 2004-06-27 19:27:20 +00:00
parent 47550b1e72
commit 40467b5bd1

View File

@ -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.