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:
parent
865a79a1b5
commit
4e84b82b51
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user