From ee6ecf963a72285068464ed6cd92b0f99a691204 Mon Sep 17 00:00:00 2001 From: "rbs%maths.uq.edu.au" Date: Tue, 19 Feb 2002 07:30:58 +0000 Subject: [PATCH] Initialize variables - regression/left-over from bug 96870 that caused me to spent cycles chasing a non-existent bug elsewhere, carrying forward r=rods, sr=attinasi git-svn-id: svn://10.0.0.236/trunk@114903 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/generic/nsTextFrame.cpp | 6 +++--- mozilla/layout/html/base/src/nsTextFrame.cpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/mozilla/layout/generic/nsTextFrame.cpp b/mozilla/layout/generic/nsTextFrame.cpp index 78b4e054268..959513d786a 100644 --- a/mozilla/layout/generic/nsTextFrame.cpp +++ b/mozilla/layout/generic/nsTextFrame.cpp @@ -2207,7 +2207,7 @@ nsTextFrame::PaintUnicodeText(nsIPresContext* aPresContext, { nsCOMPtr selCon; nsCOMPtr shell; - PRBool displaySelection,canDarkenColor; + PRBool displaySelection,canDarkenColor=PR_FALSE; PRBool isPaginated; PRBool isSelected; PRInt16 selectionValue; @@ -2891,7 +2891,7 @@ nsTextFrame::PaintTextSlowly(nsIPresContext* aPresContext, nsCOMPtr selCon; nsCOMPtr shell; PRBool displaySelection; - PRBool isPaginated,canDarkenColor; + PRBool isPaginated,canDarkenColor=PR_FALSE; PRBool isSelected; PRInt16 selectionValue; nsCOMPtr lb; @@ -3067,7 +3067,7 @@ nsTextFrame::PaintAsciiText(nsIPresContext* aPresContext, nsCOMPtr selCon; nsCOMPtr shell; - PRBool displaySelection,canDarkenColor; + PRBool displaySelection,canDarkenColor=PR_FALSE; PRBool isPaginated; PRBool isSelected; PRInt16 selectionValue; diff --git a/mozilla/layout/html/base/src/nsTextFrame.cpp b/mozilla/layout/html/base/src/nsTextFrame.cpp index 78b4e054268..959513d786a 100644 --- a/mozilla/layout/html/base/src/nsTextFrame.cpp +++ b/mozilla/layout/html/base/src/nsTextFrame.cpp @@ -2207,7 +2207,7 @@ nsTextFrame::PaintUnicodeText(nsIPresContext* aPresContext, { nsCOMPtr selCon; nsCOMPtr shell; - PRBool displaySelection,canDarkenColor; + PRBool displaySelection,canDarkenColor=PR_FALSE; PRBool isPaginated; PRBool isSelected; PRInt16 selectionValue; @@ -2891,7 +2891,7 @@ nsTextFrame::PaintTextSlowly(nsIPresContext* aPresContext, nsCOMPtr selCon; nsCOMPtr shell; PRBool displaySelection; - PRBool isPaginated,canDarkenColor; + PRBool isPaginated,canDarkenColor=PR_FALSE; PRBool isSelected; PRInt16 selectionValue; nsCOMPtr lb; @@ -3067,7 +3067,7 @@ nsTextFrame::PaintAsciiText(nsIPresContext* aPresContext, nsCOMPtr selCon; nsCOMPtr shell; - PRBool displaySelection,canDarkenColor; + PRBool displaySelection,canDarkenColor=PR_FALSE; PRBool isPaginated; PRBool isSelected; PRInt16 selectionValue;