From f13c0c68366d095e42f8de6325ddd9248aee9c4b Mon Sep 17 00:00:00 2001 From: "kipp%netscape.com" Date: Fri, 12 Feb 1999 18:24:53 +0000 Subject: [PATCH] Eliminate some linux compiler warnings --- layout/base/nsCaret.cpp | 3 +-- layout/base/src/nsCaret.cpp | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/layout/base/nsCaret.cpp b/layout/base/nsCaret.cpp index 8e5451cb867b..37c0b0b1f75f 100644 --- a/layout/base/nsCaret.cpp +++ b/layout/base/nsCaret.cpp @@ -47,8 +47,8 @@ static NS_DEFINE_IID(kICaretID, NS_ICARET_IID); //----------------------------------------------------------------------------- nsCaret::nsCaret() : mPresShell(nsnull) -, mBlinkRate(500) , mBlinkTimer(nsnull) +, mBlinkRate(500) , mVisible(PR_TRUE) , mReadOnly(PR_TRUE) , mDrawn(PR_FALSE) @@ -147,7 +147,6 @@ NS_METHOD nsCaret::SetCaretVisible(PRBool inMakeVisible) NS_METHOD nsCaret::SetCaretReadOnly(PRBool inMakeReadonly) { mReadOnly = inMakeReadonly; - nsresult err = NS_OK; return NS_OK; } diff --git a/layout/base/src/nsCaret.cpp b/layout/base/src/nsCaret.cpp index 8e5451cb867b..37c0b0b1f75f 100644 --- a/layout/base/src/nsCaret.cpp +++ b/layout/base/src/nsCaret.cpp @@ -47,8 +47,8 @@ static NS_DEFINE_IID(kICaretID, NS_ICARET_IID); //----------------------------------------------------------------------------- nsCaret::nsCaret() : mPresShell(nsnull) -, mBlinkRate(500) , mBlinkTimer(nsnull) +, mBlinkRate(500) , mVisible(PR_TRUE) , mReadOnly(PR_TRUE) , mDrawn(PR_FALSE) @@ -147,7 +147,6 @@ NS_METHOD nsCaret::SetCaretVisible(PRBool inMakeVisible) NS_METHOD nsCaret::SetCaretReadOnly(PRBool inMakeReadonly) { mReadOnly = inMakeReadonly; - nsresult err = NS_OK; return NS_OK; }