Bug 1287006 - Don't pass Nullable by value in various places, rather by const&. r=bz

This commit is contained in:
Jeff Walden
2017-02-13 09:07:40 -08:00
parent a6ec779698
commit 76e0d9bbc6
9 changed files with 47 additions and 45 deletions

View File

@@ -2332,7 +2332,7 @@ HTMLInputElement::GetValueAsDate(ErrorResult& aRv)
}
void
HTMLInputElement::SetValueAsDate(Nullable<Date> aDate, ErrorResult& aRv)
HTMLInputElement::SetValueAsDate(const Nullable<Date>& aDate, ErrorResult& aRv)
{
if (!IsDateTimeInputType(mType)) {
aRv.Throw(NS_ERROR_DOM_INVALID_STATE_ERR);