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

View File

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