fixes bug 308369 "Stop copying stat cache when cloning nsIFile instances" r=josh sr=dougt

This commit is contained in:
darin%meer.net 2005-09-13 22:08:52 +00:00
parent 36f6edb916
commit b0aabfef01
3 changed files with 7 additions and 13 deletions

View File

@ -580,9 +580,8 @@ char * TypeEaEnumerator::GetNext(PRUint32 *lth)
//-----------------------------------------------------------------------------
nsLocalFile::nsLocalFile()
: mDirty(PR_TRUE)
{
MakeDirty();
memset(&mFileInfo64, 0, sizeof(mFileInfo64));
}
NS_METHOD
@ -617,9 +616,8 @@ NS_IMPL_THREADSAFE_ISUPPORTS3(nsLocalFile, nsILocalFile, nsIFile, nsILocalFileOS
//-----------------------------------------------------------------------------
nsLocalFile::nsLocalFile(const nsLocalFile& other)
: mDirty(other.mDirty)
: mDirty(PR_TRUE)
, mWorkingPath(other.mWorkingPath)
, mFileInfo64(other.mFileInfo64)
{
}

View File

@ -247,9 +247,8 @@ nsLocalFile::nsLocalFile() :
}
nsLocalFile::nsLocalFile(const nsLocalFile& other)
: mCachedStat(other.mCachedStat)
, mPath(other.mPath)
, mHaveCachedStat(other.mHaveCachedStat)
: mPath(other.mPath)
, mHaveCachedStat(PR_FALSE)
{
}

View File

@ -450,10 +450,9 @@ NS_IMPL_ISUPPORTS2(nsDirEnumerator, nsISimpleEnumerator, nsIDirectoryEnumerator)
//-----------------------------------------------------------------------------
nsLocalFile::nsLocalFile()
: mFollowSymlinks(PR_FALSE)
: mDirty(PR_TRUE)
, mFollowSymlinks(PR_FALSE)
{
MakeDirty();
memset(&mFileInfo64, 0, sizeof(mFileInfo64));
}
NS_METHOD
@ -488,11 +487,9 @@ NS_IMPL_THREADSAFE_ISUPPORTS3(nsLocalFile, nsILocalFile, nsIFile, nsILocalFileWi
//-----------------------------------------------------------------------------
nsLocalFile::nsLocalFile(const nsLocalFile& other)
: mDirty(other.mDirty)
: mDirty(PR_TRUE)
, mFollowSymlinks(other.mFollowSymlinks)
, mWorkingPath(other.mWorkingPath)
, mResolvedPath(other.mResolvedPath)
, mFileInfo64(other.mFileInfo64)
{
}