Fixed return value for non-debug builds.

git-svn-id: svn://10.0.0.236/trunk@50453 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
warren%netscape.com 1999-10-12 10:27:40 +00:00
parent 865a79a1b5
commit 4e84b82b51
2 changed files with 4 additions and 4 deletions

View File

@ -327,6 +327,7 @@ nsresult
nsTraceRefcnt::DumpStatistics(StatisticsType type,
nsIOutputStream* out)
{
nsresult rv = NS_OK;
#ifdef NS_BUILD_REFCNT_LOGGING
if (!gTrackBloat || !gBloatView) {
return NS_OK;
@ -340,7 +341,6 @@ nsTraceRefcnt::DumpStatistics(StatisticsType type,
PRBool wasLogging = gLogging;
gLogging = PR_FALSE; // turn off logging for this method
nsresult rv;
nsCOMPtr<nsIOutputStream> outStr = dont_QueryInterface(out);
if (out == nsnull) {
nsCOMPtr<nsISupports> outSupports;
@ -367,8 +367,8 @@ nsTraceRefcnt::DumpStatistics(StatisticsType type,
done:
gLogging = wasLogging;
UNLOCK_TRACELOG();
return rv;
#endif
return rv;
}
void

View File

@ -327,6 +327,7 @@ nsresult
nsTraceRefcnt::DumpStatistics(StatisticsType type,
nsIOutputStream* out)
{
nsresult rv = NS_OK;
#ifdef NS_BUILD_REFCNT_LOGGING
if (!gTrackBloat || !gBloatView) {
return NS_OK;
@ -340,7 +341,6 @@ nsTraceRefcnt::DumpStatistics(StatisticsType type,
PRBool wasLogging = gLogging;
gLogging = PR_FALSE; // turn off logging for this method
nsresult rv;
nsCOMPtr<nsIOutputStream> outStr = dont_QueryInterface(out);
if (out == nsnull) {
nsCOMPtr<nsISupports> outSupports;
@ -367,8 +367,8 @@ nsTraceRefcnt::DumpStatistics(StatisticsType type,
done:
gLogging = wasLogging;
UNLOCK_TRACELOG();
return rv;
#endif
return rv;
}
void