зеркало из https://github.com/mozilla/gecko-dev.git
In support of #8305 (implement cache).
Add Truncate() method to nsIFileSpec and implement in nsFileSpecImpl
This commit is contained in:
Родитель
e9aa0af998
Коммит
28b5452ab6
|
@ -166,7 +166,10 @@ class nsFileSpecWithUIImpl
|
|||
NS_IMETHOD Touch ()
|
||||
{ return mBaseFileSpec ? mBaseFileSpec->Touch() : NS_ERROR_NOT_INITIALIZED; }
|
||||
|
||||
/* void rename ([const] in string newLeafName); */
|
||||
/* void truncate (in long aNewLength); */
|
||||
NS_IMETHOD Truncate(PRInt32 aNewLength)
|
||||
{ return mBaseFileSpec ? mBaseFileSpec->Truncate(aNewLength) : NS_ERROR_NOT_INITIALIZED; }
|
||||
|
||||
NS_IMETHOD Rename(const char *newLeafName)
|
||||
{ return mBaseFileSpec ? mBaseFileSpec->Rename(newLeafName) : NS_ERROR_NOT_INITIALIZED; }
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче