зеркало из https://github.com/mozilla/pjs.git
Eliminate some compiler warnings
This commit is contained in:
Родитель
17933d64a7
Коммит
f97bf0ca47
|
@ -1268,8 +1268,6 @@ PRBool CNavDTD::CanContainIndirect(eHTMLTags aParent,eHTMLTags aChild) const {
|
|||
}
|
||||
break;
|
||||
|
||||
result=PR_TRUE; break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -2720,8 +2718,7 @@ PRInt32 CNavDTD::ConsumeToken(CToken*& aToken){
|
|||
nsAutoString temp(aChar);
|
||||
return ConsumeText(temp,*theScanner,aToken);
|
||||
}
|
||||
else return ConsumeWhitespace(aChar,*theScanner,aToken);
|
||||
break;
|
||||
return ConsumeWhitespace(aChar,*theScanner,aToken);
|
||||
} //switch
|
||||
break;
|
||||
} //switch
|
||||
|
|
|
@ -55,4 +55,4 @@ public:
|
|||
|
||||
extern NS_EXPORT nsresult NS_NewDTDDebug(nsIDTDDebug** aInstancePtrResult);
|
||||
|
||||
#endif /* NS_IDTDDEBUG__ */
|
||||
#endif /* NS_IDTDDEBUG__ */
|
||||
|
|
|
@ -418,7 +418,7 @@ PRInt32 nsParser::DidBuildModel(PRInt32 anErrorCode) {
|
|||
}
|
||||
#endif
|
||||
|
||||
return anErrorCode;
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
#define _PRSTR_DELBUF_C(c, x) /* as nothing */
|
||||
#else
|
||||
#define _PRSTR_BP bp
|
||||
// Unix compilers don't believe in encapsulation
|
||||
// Unix compilers do not believe in encapsulation
|
||||
// At least on Solaris this is also ignored
|
||||
#define _PRSTR_DELBUF(x) delbuf = x
|
||||
#define _PRSTR_DELBUF_C(c, x) c::_PRSTR_DELBUF(x)
|
||||
|
@ -103,4 +103,4 @@ public:
|
|||
void close();
|
||||
};
|
||||
|
||||
#endif /* __PRSTRM */
|
||||
#endif /* __PRSTRM */
|
||||
|
|
|
@ -1268,8 +1268,6 @@ PRBool CNavDTD::CanContainIndirect(eHTMLTags aParent,eHTMLTags aChild) const {
|
|||
}
|
||||
break;
|
||||
|
||||
result=PR_TRUE; break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -2720,8 +2718,7 @@ PRInt32 CNavDTD::ConsumeToken(CToken*& aToken){
|
|||
nsAutoString temp(aChar);
|
||||
return ConsumeText(temp,*theScanner,aToken);
|
||||
}
|
||||
else return ConsumeWhitespace(aChar,*theScanner,aToken);
|
||||
break;
|
||||
return ConsumeWhitespace(aChar,*theScanner,aToken);
|
||||
} //switch
|
||||
break;
|
||||
} //switch
|
||||
|
|
|
@ -55,4 +55,4 @@ public:
|
|||
|
||||
extern NS_EXPORT nsresult NS_NewDTDDebug(nsIDTDDebug** aInstancePtrResult);
|
||||
|
||||
#endif /* NS_IDTDDEBUG__ */
|
||||
#endif /* NS_IDTDDEBUG__ */
|
||||
|
|
|
@ -418,7 +418,7 @@ PRInt32 nsParser::DidBuildModel(PRInt32 anErrorCode) {
|
|||
}
|
||||
#endif
|
||||
|
||||
return anErrorCode;
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
#define _PRSTR_DELBUF_C(c, x) /* as nothing */
|
||||
#else
|
||||
#define _PRSTR_BP bp
|
||||
// Unix compilers don't believe in encapsulation
|
||||
// Unix compilers do not believe in encapsulation
|
||||
// At least on Solaris this is also ignored
|
||||
#define _PRSTR_DELBUF(x) delbuf = x
|
||||
#define _PRSTR_DELBUF_C(c, x) c::_PRSTR_DELBUF(x)
|
||||
|
@ -103,4 +103,4 @@ public:
|
|||
void close();
|
||||
};
|
||||
|
||||
#endif /* __PRSTRM */
|
||||
#endif /* __PRSTRM */
|
||||
|
|
|
@ -494,8 +494,8 @@ NS_METHOD nsDocumentBindInfo::OnStopBinding(PRInt32 aStatus, const nsString& aMs
|
|||
|
||||
|
||||
/*******************************************
|
||||
/* nsDocLoaderFactory
|
||||
/*******************************************/
|
||||
* nsDocLoaderFactory
|
||||
*******************************************/
|
||||
|
||||
static NS_DEFINE_IID(kIFactoryIID, NS_IFACTORY_IID);
|
||||
static NS_DEFINE_IID(kCDocumentLoader, NS_DOCUMENTLOADER_CID);
|
||||
|
|
|
@ -494,8 +494,8 @@ NS_METHOD nsDocumentBindInfo::OnStopBinding(PRInt32 aStatus, const nsString& aMs
|
|||
|
||||
|
||||
/*******************************************
|
||||
/* nsDocLoaderFactory
|
||||
/*******************************************/
|
||||
* nsDocLoaderFactory
|
||||
*******************************************/
|
||||
|
||||
static NS_DEFINE_IID(kIFactoryIID, NS_IFACTORY_IID);
|
||||
static NS_DEFINE_IID(kCDocumentLoader, NS_DOCUMENTLOADER_CID);
|
||||
|
|
|
@ -149,8 +149,6 @@ private:
|
|||
//static nsIWebWidget* gRootWebWidget;
|
||||
nsString* mName;
|
||||
nsIDeviceContext *mDeviceContext;
|
||||
|
||||
friend class WebWidgetImpl;
|
||||
};
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
@ -1136,8 +1134,8 @@ nsresult WebWidgetImpl::GetDOMDocument(nsIDOMDocument** aDocument)
|
|||
}
|
||||
|
||||
/*******************************************
|
||||
/* nsWebWidgetFactory
|
||||
/*******************************************/
|
||||
* nsWebWidgetFactory
|
||||
*******************************************/
|
||||
|
||||
//static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
|
||||
static NS_DEFINE_IID(kIFactoryIID, NS_IFACTORY_IID);
|
||||
|
|
|
@ -40,14 +40,7 @@ EX_LIBS = \
|
|||
$(DIST)/bin/libgfxunix.so \
|
||||
$(DIST)/bin/libraptorhtml.so \
|
||||
$(DIST)/bin/libgmbaseunix.so \
|
||||
$(DIST)/bin/libraptorhtmlbase_s.so \
|
||||
$(DIST)/bin/libraptorhtmldoc_s.so \
|
||||
$(DIST)/bin/libraptorhtmlforms_s.so \
|
||||
$(DIST)/bin/libraptorhtmlpars.so \
|
||||
$(DIST)/bin/libraptorhtmlstyle_s.so \
|
||||
$(DIST)/bin/libraptorhtmltable_s.so \
|
||||
$(DIST)/bin/libraptorlayout_s.so \
|
||||
$(DIST)/bin/libraptorevents_s.so \
|
||||
$(DIST)/bin/libraptorview.so \
|
||||
$(DIST)/bin/libreg.so \
|
||||
$(DIST)/bin/libabouturl.so \
|
||||
|
@ -85,8 +78,6 @@ EX_LIBS = \
|
|||
$(DIST)/bin/libxp.so \
|
||||
$(DIST)/bin/libxpcom.so \
|
||||
$(DIST)/bin/libzlib.so \
|
||||
$(DIST)/bin/libnglcsslay_s.so \
|
||||
$(DIST)/bin/libnglhtmlcon_s.so \
|
||||
$(NULL)
|
||||
|
||||
ifeq ($(OS_ARCH),Linux)
|
||||
|
|
|
@ -66,4 +66,4 @@ extern nsresult NS_NewEditorKeyListener(nsIDOMEventListener ** aInstancePtrResul
|
|||
|
||||
extern nsresult NS_NewEditorMouseListener(nsIDOMEventListener ** aInstancePtrResult);
|
||||
|
||||
#endif //nsEditorInterfaces_h__
|
||||
#endif //nsEditorInterfaces_h__
|
||||
|
|
|
@ -167,4 +167,4 @@ nsresult nsAppendText(nsString *aStr)
|
|||
NS_IF_RELEASE(mNode);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -30,4 +30,4 @@ extern nsresult nsGetCurrentNode(nsIDOMNode **aNode);
|
|||
nsresult RegisterEventListeners();
|
||||
nsresult GetFirstTextNode(nsIDOMNode *aNode, nsIDOMNode **aRetNode);
|
||||
|
||||
#endif //nsEditorMode_h__
|
||||
#endif //nsEditorMode_h__
|
||||
|
|
|
@ -607,16 +607,14 @@ nsEventStatus PR_CALLBACK HandleEventApp(nsGUIEvent *aEvent)
|
|||
gTheViewer->Stop();
|
||||
|
||||
}
|
||||
return nsEventStatus_eConsumeDoDefault;
|
||||
}
|
||||
return nsEventStatus_eConsumeDoDefault;
|
||||
|
||||
|
||||
default:
|
||||
return(gTheViewer->DispatchMenuItem(aEvent));
|
||||
break;
|
||||
}
|
||||
|
||||
return(nsEventStatus_eIgnore);
|
||||
return(gTheViewer->DispatchMenuItem(aEvent));
|
||||
}
|
||||
|
||||
void ReleaseMemory()
|
||||
|
|
|
@ -271,7 +271,7 @@ void nsTextAreaWidget::AggTextAreaWidget::SetPassword(PRBool aIsPassword)
|
|||
//--------------------------------------------------------------
|
||||
PRBool nsTextAreaWidget::AggTextAreaWidget::SetReadOnly(PRBool aReadOnlyFlag)
|
||||
{
|
||||
GET_OUTER()->SetReadOnly(aReadOnlyFlag);
|
||||
return GET_OUTER()->SetReadOnly(aReadOnlyFlag);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------
|
||||
|
|
|
@ -296,7 +296,7 @@ void nsTextWidget::AggTextWidget::SetPassword(PRBool aIsPassword)
|
|||
//--------------------------------------------------------------
|
||||
PRBool nsTextWidget::AggTextWidget::SetReadOnly(PRBool aReadOnlyFlag)
|
||||
{
|
||||
GET_OUTER()->SetReadOnly(aReadOnlyFlag);
|
||||
return GET_OUTER()->SetReadOnly(aReadOnlyFlag);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------
|
||||
|
|
|
@ -202,8 +202,6 @@ nsresult nsWidgetFactory::CreateInstance(nsISupports *aOuter,
|
|||
}
|
||||
|
||||
return res;
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult nsWidgetFactory::LockFactory(PRBool aLock)
|
||||
|
|
|
@ -116,7 +116,7 @@ nsrefcnt nsWindow::AddRef(void)
|
|||
*/
|
||||
nsrefcnt nsWindow::Release(void)
|
||||
{
|
||||
return NS_RELEASE(mOuter);
|
||||
return mOuter->Release();
|
||||
}
|
||||
|
||||
|
||||
|
@ -791,42 +791,27 @@ void nsWindow::Invalidate(PRBool aIsSynchronous)
|
|||
//-------------------------------------------------------------------------
|
||||
void* nsWindow::GetNativeData(PRUint32 aDataType)
|
||||
{
|
||||
switch(aDataType) {
|
||||
switch(aDataType) {
|
||||
|
||||
case NS_NATIVE_WINDOW:
|
||||
{
|
||||
return (void*)XtWindow(mWidget);
|
||||
}
|
||||
break;
|
||||
case NS_NATIVE_DISPLAY:
|
||||
{
|
||||
return (void*)XtDisplay(mWidget);
|
||||
}
|
||||
break;
|
||||
case NS_NATIVE_WIDGET:
|
||||
{
|
||||
return (void*)(mWidget);
|
||||
}
|
||||
break;
|
||||
case NS_NATIVE_GRAPHIC:
|
||||
{
|
||||
// We Cache a Read-Only Shared GC in the Toolkit. If we don't
|
||||
// have one ourselves (because it needs to be writeable) grab the
|
||||
// the shared GC
|
||||
|
||||
if (nsnull == mGC)
|
||||
return (((nsToolkit *)mToolkit)->GetSharedGC());
|
||||
|
||||
return ((void*)mGC);
|
||||
}
|
||||
break;
|
||||
case NS_NATIVE_COLORMAP:
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
case NS_NATIVE_WINDOW:
|
||||
return (void*)XtWindow(mWidget);
|
||||
case NS_NATIVE_DISPLAY:
|
||||
return (void*)XtDisplay(mWidget);
|
||||
case NS_NATIVE_WIDGET:
|
||||
return (void*)(mWidget);
|
||||
case NS_NATIVE_GRAPHIC:
|
||||
// We Cache a Read-Only Shared GC in the Toolkit. If we don't
|
||||
// have one ourselves (because it needs to be writeable) grab the
|
||||
// the shared GC
|
||||
if (nsnull == mGC)
|
||||
return (((nsToolkit *)mToolkit)->GetSharedGC());
|
||||
return ((void*)mGC);
|
||||
case NS_NATIVE_COLORMAP:
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
|
@ -968,18 +953,15 @@ PRBool nsWindow::ConvertStatus(nsEventStatus aStatus)
|
|||
switch(aStatus) {
|
||||
case nsEventStatus_eIgnore:
|
||||
return(PR_FALSE);
|
||||
break;
|
||||
case nsEventStatus_eConsumeNoDefault:
|
||||
return(PR_TRUE);
|
||||
break;
|
||||
case nsEventStatus_eConsumeDoDefault:
|
||||
return(PR_FALSE);
|
||||
break;
|
||||
default:
|
||||
NS_ASSERTION(0, "Illegal nsEventStatus enumeration value");
|
||||
return(PR_FALSE);
|
||||
break;
|
||||
break;
|
||||
}
|
||||
return(PR_FALSE);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
|
|
|
@ -489,7 +489,7 @@ public: \
|
|||
} \
|
||||
PRBool _classname::_aggname::OnResize(nsSizeEvent &aEvent) \
|
||||
{ \
|
||||
GET_OUTER()->OnResize(aEvent); \
|
||||
return GET_OUTER()->OnResize(aEvent); \
|
||||
} \
|
||||
PRBool _classname::_aggname::OnKey(PRUint32 aEventType, PRUint32 aKeyCode) \
|
||||
{ \
|
||||
|
|
Загрузка…
Ссылка в новой задаче