зеркало из https://github.com/mozilla/pjs.git
fix warnings.
This commit is contained in:
Родитель
1578f445fb
Коммит
1ff7f19198
|
@ -141,11 +141,11 @@ nsXULAttribute::nsXULAttribute(nsIContent* aContent,
|
|||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aName,
|
||||
const nsString& aValue)
|
||||
: mNameSpaceID(aNameSpaceID),
|
||||
: mContent(aContent),
|
||||
mScriptObject(nsnull),
|
||||
mNameSpaceID(aNameSpaceID),
|
||||
mName(aName),
|
||||
mValue(nsnull),
|
||||
mContent(aContent),
|
||||
mScriptObject(nsnull)
|
||||
mValue(nsnull)
|
||||
{
|
||||
NS_INIT_REFCNT();
|
||||
NS_IF_ADDREF(aName);
|
||||
|
|
|
@ -1375,8 +1375,8 @@ nsMargin border;
|
|||
const nsStyleColor* bgColor = nsStyleUtil::FindNonTransparentBackground(aStyleContext);
|
||||
nsStyleCoord bordStyleRadius[4];
|
||||
PRInt16 borderRadii[4],i;
|
||||
nsStyleCoord tr,lr,rr,br;
|
||||
nsStyleCoord borderRadius;
|
||||
//nsStyleCoord tr,lr,rr,br;
|
||||
//nsStyleCoord borderRadius;
|
||||
float percent;
|
||||
|
||||
if (aHardBorderSize > 0) {
|
||||
|
|
|
@ -1375,8 +1375,8 @@ nsMargin border;
|
|||
const nsStyleColor* bgColor = nsStyleUtil::FindNonTransparentBackground(aStyleContext);
|
||||
nsStyleCoord bordStyleRadius[4];
|
||||
PRInt16 borderRadii[4],i;
|
||||
nsStyleCoord tr,lr,rr,br;
|
||||
nsStyleCoord borderRadius;
|
||||
//nsStyleCoord tr,lr,rr,br;
|
||||
//nsStyleCoord borderRadius;
|
||||
float percent;
|
||||
|
||||
if (aHardBorderSize > 0) {
|
||||
|
|
|
@ -2560,7 +2560,7 @@ nsInfoListImpl::SanityCheck(nsFrameList& aFrameList)
|
|||
|
||||
// ---- box info ------
|
||||
|
||||
nsBoxInfo::nsBoxInfo():prefSize(0,0), minSize(0,0), flex(0), maxSize(NS_INTRINSICSIZE, NS_INTRINSICSIZE)
|
||||
nsBoxInfo::nsBoxInfo():prefSize(0,0), minSize(0,0), maxSize(NS_INTRINSICSIZE, NS_INTRINSICSIZE), flex(0)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -828,7 +828,6 @@ nsFtpConnectionThread::SetStreamObserver(nsIStreamObserver* aObserver, nsISuppor
|
|||
|
||||
nsresult
|
||||
nsFtpConnectionThread::SetStreamListener(nsIStreamListener* aListener, nsISupports *aContext) {
|
||||
nsresult rv = NS_OK;
|
||||
mListener = aListener;
|
||||
mListenerContext = aContext;
|
||||
return NS_OK;
|
||||
|
@ -1387,7 +1386,6 @@ nsFtpConnectionThread::S_list() {
|
|||
|
||||
FTP_STATE
|
||||
nsFtpConnectionThread::R_list() {
|
||||
nsresult rv = NS_OK;
|
||||
if ((mResponseCode/100 == 4)
|
||||
||
|
||||
(mResponseCode/100 == 5)) {
|
||||
|
@ -1433,7 +1431,6 @@ nsFtpConnectionThread::S_retr() {
|
|||
|
||||
FTP_STATE
|
||||
nsFtpConnectionThread::R_retr() {
|
||||
nsresult rv = NS_OK;
|
||||
if (mResponseCode/100 == 1) {
|
||||
// success.
|
||||
return FTP_READ_BUF;
|
||||
|
|
|
@ -141,11 +141,11 @@ nsXULAttribute::nsXULAttribute(nsIContent* aContent,
|
|||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aName,
|
||||
const nsString& aValue)
|
||||
: mNameSpaceID(aNameSpaceID),
|
||||
: mContent(aContent),
|
||||
mScriptObject(nsnull),
|
||||
mNameSpaceID(aNameSpaceID),
|
||||
mName(aName),
|
||||
mValue(nsnull),
|
||||
mContent(aContent),
|
||||
mScriptObject(nsnull)
|
||||
mValue(nsnull)
|
||||
{
|
||||
NS_INIT_REFCNT();
|
||||
NS_IF_ADDREF(aName);
|
||||
|
|
|
@ -264,8 +264,8 @@ nsProxyEventObject::GetNewOrUsedProxy(nsIEventQueue *destQueue,
|
|||
|
||||
}
|
||||
nsProxyEventObject::nsProxyEventObject()
|
||||
: mNext(nsnull),
|
||||
mHashKey("")
|
||||
: mHashKey(""),
|
||||
mNext(nsnull)
|
||||
{
|
||||
NS_WARNING("This constructor should never be called");
|
||||
}
|
||||
|
@ -276,8 +276,8 @@ nsProxyEventObject::nsProxyEventObject(nsIEventQueue *destQueue,
|
|||
nsProxyEventClass* aClass,
|
||||
nsProxyEventObject* root,
|
||||
const char * hashStr)
|
||||
: mNext(nsnull),
|
||||
mHashKey(hashStr)
|
||||
: mHashKey(hashStr),
|
||||
mNext(nsnull)
|
||||
{
|
||||
NS_INIT_REFCNT();
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче