In support of #8305 (implement cache).

Add Truncate() method to nsIFileSpec and implement in nsFileSpecImpl
This commit is contained in:
fur%netscape.com 1999-11-19 01:44:54 +00:00
Родитель e9aa0af998
Коммит 28b5452ab6
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -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; }