зеркало из https://github.com/mozilla/pjs.git
Removed compiler warnings
This commit is contained in:
Родитель
edda7e7d0c
Коммит
4bc35ca479
|
@ -247,10 +247,10 @@ PRBool GetNodeBracketPoints(nsIContent* aNode,
|
|||
|
||||
nsRange::nsRange() :
|
||||
mIsPositioned(PR_FALSE),
|
||||
mStartParent(),
|
||||
mStartOffset(0),
|
||||
mEndParent(),
|
||||
mEndOffset(0),
|
||||
mStartParent(),
|
||||
mEndParent(),
|
||||
mScriptObject(nsnull)
|
||||
{
|
||||
NS_INIT_REFCNT();
|
||||
|
|
|
@ -425,7 +425,7 @@ nsEventStateManager::DispatchKeyPressEvent(nsIPresContext& aPresContext,
|
|||
nsKeyEvent *aEvent,
|
||||
nsEventStatus& aStatus)
|
||||
{
|
||||
nsresult ret;
|
||||
nsresult ret = NS_OK;
|
||||
|
||||
//fire keypress
|
||||
nsKeyEvent event;
|
||||
|
|
|
@ -60,6 +60,7 @@
|
|||
|
||||
#include "nsVoidArray.h"
|
||||
#include "nsIScriptContextOwner.h"
|
||||
#include "nsHTMLIIDs.h"
|
||||
|
||||
// XXX Go through a factory for this one
|
||||
#include "nsICSSParser.h"
|
||||
|
@ -73,7 +74,6 @@ static NS_DEFINE_IID(kIDOMNodeIID, NS_IDOMNODE_IID);
|
|||
#define XXX_ART_HACK 1
|
||||
|
||||
static NS_DEFINE_IID(kIContentIID, NS_ICONTENT_IID);
|
||||
static NS_DEFINE_IID(kIHTMLContentIID, NS_IHTMLCONTENT_IID);
|
||||
static NS_DEFINE_IID(kIDOMTextIID, NS_IDOMTEXT_IID);
|
||||
static NS_DEFINE_IID(kIDOMCommentIID, NS_IDOMCOMMENT_IID);
|
||||
static NS_DEFINE_IID(kIDOMHTMLFormElementIID, NS_IDOMHTMLFORMELEMENT_IID);
|
||||
|
@ -1337,7 +1337,6 @@ SinkContext::FlushText(PRBool* aDidFlush)
|
|||
content->SetDocument(mSink->mDocument, PR_FALSE);
|
||||
|
||||
// Set the text in the text node
|
||||
static NS_DEFINE_IID(kITextContentIID, NS_ITEXT_CONTENT_IID);
|
||||
nsITextContent* text = nsnull;
|
||||
content->QueryInterface(kITextContentIID, (void**) &text);
|
||||
text->SetText(mText, mTextLength, PR_FALSE);
|
||||
|
@ -2909,8 +2908,6 @@ HTMLContentSink::ProcessSCRIPTTag(const nsIParserNode& aNode)
|
|||
}
|
||||
}
|
||||
else {
|
||||
PRBool enabled = PR_TRUE;
|
||||
|
||||
PreEvaluateScript();
|
||||
|
||||
// Otherwise, get the text content of the script tag
|
||||
|
|
|
@ -407,7 +407,9 @@ static PRLogModuleInfo* gLogModule;
|
|||
#endif
|
||||
|
||||
static PRBool gVerifyReflow = PRBool(0x55);
|
||||
#ifdef NS_DEBUG
|
||||
static PRBool gVerifyReflowAll;
|
||||
#endif
|
||||
|
||||
NS_LAYOUT PRBool
|
||||
nsIPresShell::GetVerifyReflowEnable()
|
||||
|
|
|
@ -247,10 +247,10 @@ PRBool GetNodeBracketPoints(nsIContent* aNode,
|
|||
|
||||
nsRange::nsRange() :
|
||||
mIsPositioned(PR_FALSE),
|
||||
mStartParent(),
|
||||
mStartOffset(0),
|
||||
mEndParent(),
|
||||
mEndOffset(0),
|
||||
mStartParent(),
|
||||
mEndParent(),
|
||||
mScriptObject(nsnull)
|
||||
{
|
||||
NS_INIT_REFCNT();
|
||||
|
|
|
@ -20,9 +20,9 @@
|
|||
#include <fstream.h>
|
||||
|
||||
|
||||
nsXIFConverter::nsXIFConverter(nsString& aBuffer) :
|
||||
mBuffer(aBuffer),
|
||||
mIndent(0)
|
||||
nsXIFConverter::nsXIFConverter(nsString& aBuffer)
|
||||
: mIndent(0),
|
||||
mBuffer(aBuffer)
|
||||
{
|
||||
char* prolog = "<?xml version=\"1.0\"?>\n";
|
||||
char* doctype = "<!DOCTYPE xif>\n";
|
||||
|
|
|
@ -425,7 +425,7 @@ nsEventStateManager::DispatchKeyPressEvent(nsIPresContext& aPresContext,
|
|||
nsKeyEvent *aEvent,
|
||||
nsEventStatus& aStatus)
|
||||
{
|
||||
nsresult ret;
|
||||
nsresult ret = NS_OK;
|
||||
|
||||
//fire keypress
|
||||
nsKeyEvent event;
|
||||
|
|
|
@ -66,7 +66,6 @@ nsresult
|
|||
nsBlockBandData::GetAvailableSpace(nscoord aY, nsRect& aResult)
|
||||
{
|
||||
// Get the raw band data for the given Y coordinate
|
||||
PRInt32 currentSize = size;
|
||||
nsresult rv = mSpaceManager->GetBandData(aY, mSpace, *this);
|
||||
while (NS_FAILED(rv)) {
|
||||
// We need more space for our bands
|
||||
|
|
|
@ -104,7 +104,9 @@ NS_LAYOUT PRBool nsIFrame::GetShowFrameBorders()
|
|||
*/
|
||||
static PRLogModuleInfo* gLogModule;
|
||||
|
||||
#ifdef NS_DEBUG
|
||||
static PRLogModuleInfo* gFrameVerifyTreeLogModuleInfo;
|
||||
#endif
|
||||
|
||||
static PRBool gFrameVerifyTreeEnable = PRBool(0x55);
|
||||
|
||||
|
|
|
@ -66,7 +66,6 @@ nsresult
|
|||
nsBlockBandData::GetAvailableSpace(nscoord aY, nsRect& aResult)
|
||||
{
|
||||
// Get the raw band data for the given Y coordinate
|
||||
PRInt32 currentSize = size;
|
||||
nsresult rv = mSpaceManager->GetBandData(aY, mSpace, *this);
|
||||
while (NS_FAILED(rv)) {
|
||||
// We need more space for our bands
|
||||
|
|
|
@ -104,7 +104,9 @@ NS_LAYOUT PRBool nsIFrame::GetShowFrameBorders()
|
|||
*/
|
||||
static PRLogModuleInfo* gLogModule;
|
||||
|
||||
#ifdef NS_DEBUG
|
||||
static PRLogModuleInfo* gFrameVerifyTreeLogModuleInfo;
|
||||
#endif
|
||||
|
||||
static PRBool gFrameVerifyTreeEnable = PRBool(0x55);
|
||||
|
||||
|
|
|
@ -407,7 +407,9 @@ static PRLogModuleInfo* gLogModule;
|
|||
#endif
|
||||
|
||||
static PRBool gVerifyReflow = PRBool(0x55);
|
||||
#ifdef NS_DEBUG
|
||||
static PRBool gVerifyReflowAll;
|
||||
#endif
|
||||
|
||||
NS_LAYOUT PRBool
|
||||
nsIPresShell::GetVerifyReflowEnable()
|
||||
|
|
|
@ -60,6 +60,7 @@
|
|||
|
||||
#include "nsVoidArray.h"
|
||||
#include "nsIScriptContextOwner.h"
|
||||
#include "nsHTMLIIDs.h"
|
||||
|
||||
// XXX Go through a factory for this one
|
||||
#include "nsICSSParser.h"
|
||||
|
@ -73,7 +74,6 @@ static NS_DEFINE_IID(kIDOMNodeIID, NS_IDOMNODE_IID);
|
|||
#define XXX_ART_HACK 1
|
||||
|
||||
static NS_DEFINE_IID(kIContentIID, NS_ICONTENT_IID);
|
||||
static NS_DEFINE_IID(kIHTMLContentIID, NS_IHTMLCONTENT_IID);
|
||||
static NS_DEFINE_IID(kIDOMTextIID, NS_IDOMTEXT_IID);
|
||||
static NS_DEFINE_IID(kIDOMCommentIID, NS_IDOMCOMMENT_IID);
|
||||
static NS_DEFINE_IID(kIDOMHTMLFormElementIID, NS_IDOMHTMLFORMELEMENT_IID);
|
||||
|
@ -1337,7 +1337,6 @@ SinkContext::FlushText(PRBool* aDidFlush)
|
|||
content->SetDocument(mSink->mDocument, PR_FALSE);
|
||||
|
||||
// Set the text in the text node
|
||||
static NS_DEFINE_IID(kITextContentIID, NS_ITEXT_CONTENT_IID);
|
||||
nsITextContent* text = nsnull;
|
||||
content->QueryInterface(kITextContentIID, (void**) &text);
|
||||
text->SetText(mText, mTextLength, PR_FALSE);
|
||||
|
@ -2909,8 +2908,6 @@ HTMLContentSink::ProcessSCRIPTTag(const nsIParserNode& aNode)
|
|||
}
|
||||
}
|
||||
else {
|
||||
PRBool enabled = PR_TRUE;
|
||||
|
||||
PreEvaluateScript();
|
||||
|
||||
// Otherwise, get the text content of the script tag
|
||||
|
|
Загрузка…
Ссылка в новой задаче