mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-13 19:41:49 +00:00
Added Get/SetPersistentDescriptor. Use this instead of GetPath/InitWithPath.
This commit is contained in:
parent
71b8e272d8
commit
eedd73c66d
@ -2074,6 +2074,20 @@ nsLocalFile::GetDirectoryEntries(nsISimpleEnumerator * *entries)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsLocalFile::GetPersistentDescriptor(char * *aPersistentDescriptor)
|
||||
{
|
||||
NS_ENSURE_ARG_POINTER(aPersistentDescriptor);
|
||||
return GetPath(aPersistentDescriptor);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsLocalFile::SetPersistentDescriptor(const char * aPersistentDescriptor)
|
||||
{
|
||||
NS_ENSURE_ARG(aPersistentDescriptor);
|
||||
return InitWithPath(aPersistentDescriptor);
|
||||
}
|
||||
|
||||
|
||||
nsresult
|
||||
NS_NewLocalFile(const char* path, PRBool followLinks, nsILocalFile* *result)
|
||||
|
Loading…
x
Reference in New Issue
Block a user