mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-04-13 03:21:41 +00:00
Remove #ifdef DEBUG
This commit is contained in:
parent
48d25f7404
commit
ec7d3e520a
@ -230,12 +230,12 @@ class NS_BASE nsFileSpec
|
||||
PRBool Valid() const { return NS_SUCCEEDED(Error()); }
|
||||
nsresult Error() const { return mError; }
|
||||
|
||||
#if DEBUG
|
||||
|
||||
friend NS_BASE nsOutputStream& operator << (
|
||||
nsOutputStream& s,
|
||||
const nsFileSpec& spec); // THIS IS FOR DEBUGGING ONLY.
|
||||
// see PersistentFileDescriptor for the real deal.
|
||||
#endif
|
||||
|
||||
|
||||
//--------------------------------------------------
|
||||
// Queries and path algebra. These do not modify the disk.
|
||||
|
@ -367,14 +367,13 @@ void nsFileURL::operator = (const nsFileSpec& inOther)
|
||||
#endif
|
||||
} // nsFileURL::operator =
|
||||
|
||||
#if DEBUG
|
||||
|
||||
//----------------------------------------------------------------------------------------
|
||||
nsOutputStream& operator << (nsOutputStream& s, const nsFileURL& url)
|
||||
//----------------------------------------------------------------------------------------
|
||||
{
|
||||
return (s << url.mURL);
|
||||
}
|
||||
#endif
|
||||
|
||||
//========================================================================================
|
||||
// nsFilePath implementation
|
||||
@ -673,7 +672,7 @@ void nsFileSpec::operator = (const char* inString)
|
||||
}
|
||||
#endif //XP_UNIX
|
||||
|
||||
#if DEBUG
|
||||
|
||||
#if (defined(XP_UNIX) || defined(XP_PC))
|
||||
//----------------------------------------------------------------------------------------
|
||||
nsOutputStream& operator << (nsOutputStream& s, const nsFileSpec& spec)
|
||||
@ -682,7 +681,6 @@ nsOutputStream& operator << (nsOutputStream& s, const nsFileSpec& spec)
|
||||
return (s << (const char*)spec.mPath);
|
||||
}
|
||||
#endif // DEBUG && XP_UNIX
|
||||
#endif
|
||||
|
||||
//----------------------------------------------------------------------------------------
|
||||
nsFileSpec nsFileSpec::operator + (const char* inRelativePath) const
|
||||
|
@ -367,14 +367,13 @@ void nsFileURL::operator = (const nsFileSpec& inOther)
|
||||
#endif
|
||||
} // nsFileURL::operator =
|
||||
|
||||
#if DEBUG
|
||||
|
||||
//----------------------------------------------------------------------------------------
|
||||
nsOutputStream& operator << (nsOutputStream& s, const nsFileURL& url)
|
||||
//----------------------------------------------------------------------------------------
|
||||
{
|
||||
return (s << url.mURL);
|
||||
}
|
||||
#endif
|
||||
|
||||
//========================================================================================
|
||||
// nsFilePath implementation
|
||||
@ -673,7 +672,7 @@ void nsFileSpec::operator = (const char* inString)
|
||||
}
|
||||
#endif //XP_UNIX
|
||||
|
||||
#if DEBUG
|
||||
|
||||
#if (defined(XP_UNIX) || defined(XP_PC))
|
||||
//----------------------------------------------------------------------------------------
|
||||
nsOutputStream& operator << (nsOutputStream& s, const nsFileSpec& spec)
|
||||
@ -682,7 +681,6 @@ nsOutputStream& operator << (nsOutputStream& s, const nsFileSpec& spec)
|
||||
return (s << (const char*)spec.mPath);
|
||||
}
|
||||
#endif // DEBUG && XP_UNIX
|
||||
#endif
|
||||
|
||||
//----------------------------------------------------------------------------------------
|
||||
nsFileSpec nsFileSpec::operator + (const char* inRelativePath) const
|
||||
|
@ -230,12 +230,12 @@ class NS_BASE nsFileSpec
|
||||
PRBool Valid() const { return NS_SUCCEEDED(Error()); }
|
||||
nsresult Error() const { return mError; }
|
||||
|
||||
#if DEBUG
|
||||
|
||||
friend NS_BASE nsOutputStream& operator << (
|
||||
nsOutputStream& s,
|
||||
const nsFileSpec& spec); // THIS IS FOR DEBUGGING ONLY.
|
||||
// see PersistentFileDescriptor for the real deal.
|
||||
#endif
|
||||
|
||||
|
||||
//--------------------------------------------------
|
||||
// Queries and path algebra. These do not modify the disk.
|
||||
|
Loading…
x
Reference in New Issue
Block a user