mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
fixes bug 308369 "Stop copying stat cache when cloning nsIFile instances" r=josh sr=dougt
This commit is contained in:
parent
36f6edb916
commit
b0aabfef01
@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user