mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-04-02 04:22:56 +00:00
removed warnings: rearranged initializers and removed unused variable "onChild"
This commit is contained in:
parent
60f9b3d9e4
commit
8a6bb674ef
@ -54,8 +54,9 @@ NS_IMPL_RELEASE(nsToolbarDragListener)
|
||||
// Not much to do besides init member variables
|
||||
//
|
||||
nsToolbarDragListener :: nsToolbarDragListener ( nsToolbarFrame* inToolbar, nsIPresContext* inPresContext )
|
||||
: mToolbar(inToolbar), mPresContext(inPresContext), mMouseDown(PR_FALSE), mMouseDrag(PR_FALSE),
|
||||
mCurrentDropLoc(-1)
|
||||
: mToolbar(inToolbar), mPresContext(inPresContext), mCurrentDropLoc(-1),
|
||||
mMouseDown(PR_FALSE), mMouseDrag(PR_FALSE)
|
||||
|
||||
{
|
||||
NS_INIT_REFCNT();
|
||||
}
|
||||
@ -303,7 +304,7 @@ nsToolbarDragListener::DragOver(nsIDOMEvent* aDragEvent)
|
||||
// Check to see if the mouse is over an item
|
||||
nscoord xLoc;
|
||||
PRBool isLegalChild;
|
||||
PRBool onChild = IsOnToolbarItem(aDragEvent, xLoc, isLegalChild);
|
||||
IsOnToolbarItem(aDragEvent, xLoc, isLegalChild);
|
||||
|
||||
if (xLoc != mCurrentDropLoc) {
|
||||
mToolbar->SetDropfeedbackLocation(xLoc);
|
||||
|
Loading…
x
Reference in New Issue
Block a user