Bug 776447 - layout/xul/base/src/nsSliderFrame.cpp(595) : warning C4305: 'return' : truncation from 'nsresult' to 'bool'. r=enndeakin

This commit is contained in:
Makoto Kato 2012-07-24 11:57:22 +09:00
parent b64403c744
commit f03fecf17b

View File

@ -592,7 +592,7 @@ nsSliderFrame::GetEventPoint(nsGUIEvent* aEvent, nsPoint &aPoint) {
bool
nsSliderFrame::GetTouchPoint(nsTouchEvent* aEvent, nsIntPoint &aPoint)
{
NS_ENSURE_ARG_POINTER(aEvent);
NS_ENSURE_TRUE(aEvent, false);
// return false if there is more than one touch on the page, or if
// we can't find a touch point
if (aEvent->touches.Length() != 1) {