From 4e84b82b51b4cb4b1ab040d7eef03bf0807c6d6c Mon Sep 17 00:00:00 2001 From: "warren%netscape.com" Date: Tue, 12 Oct 1999 10:27:40 +0000 Subject: [PATCH] Fixed return value for non-debug builds. git-svn-id: svn://10.0.0.236/trunk@50453 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpcom/base/nsTraceRefcnt.cpp | 4 ++-- mozilla/xpcom/base/nsTraceRefcntImpl.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mozilla/xpcom/base/nsTraceRefcnt.cpp b/mozilla/xpcom/base/nsTraceRefcnt.cpp index 7b60411a213..d85fc9805ed 100644 --- a/mozilla/xpcom/base/nsTraceRefcnt.cpp +++ b/mozilla/xpcom/base/nsTraceRefcnt.cpp @@ -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 outStr = dont_QueryInterface(out); if (out == nsnull) { nsCOMPtr outSupports; @@ -367,8 +367,8 @@ nsTraceRefcnt::DumpStatistics(StatisticsType type, done: gLogging = wasLogging; UNLOCK_TRACELOG(); - return rv; #endif + return rv; } void diff --git a/mozilla/xpcom/base/nsTraceRefcntImpl.cpp b/mozilla/xpcom/base/nsTraceRefcntImpl.cpp index 7b60411a213..d85fc9805ed 100644 --- a/mozilla/xpcom/base/nsTraceRefcntImpl.cpp +++ b/mozilla/xpcom/base/nsTraceRefcntImpl.cpp @@ -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 outStr = dont_QueryInterface(out); if (out == nsnull) { nsCOMPtr outSupports; @@ -367,8 +367,8 @@ nsTraceRefcnt::DumpStatistics(StatisticsType type, done: gLogging = wasLogging; UNLOCK_TRACELOG(); - return rv; #endif + return rv; } void