extensions/moz.build
author Gerald Squelart <gsquelart@mozilla.com>
Tue, 08 Nov 2016 15:12:33 +1100
changeset 435725 1185cf870e8681261b9ae9360aa5240605a94d9f
parent 391263 3ec6380fca8207fa199693206a3ca24975bf9833
child 467426 bcba677f9c6df3e48269f525e34532ccea372765
permissions -rw-r--r--
Bug 1316206 - Make RefPtr(decltype(nullptr)) MOZ_IMPLICIT - r?froydnj Making this constructor non-explicit will permit automatic conversions from 'nullptr' into RefPtr types, which I think are not dangerous. The one spot that this affects is in 'UserDataType nsBaseHashtable::Get(KeyType)', which does a 'return 0;' into the UserDataType, which could be a bool, an int, a RefPtr or other. I'm changing that into a C++11 "value initialization", which falls back to "zero initialization" for PODs: 'return UserDataType{};'. MozReview-Commit-ID: F41VlvTNOZU

# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

DIRS += CONFIG['MOZ_EXTENSIONS']