gecko-dev/mfbt
Gerald Squelart 06c4e95cd0 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{};'.

Also fixed the comment to clarify not-found return values, as Get(KeyType) was
not only used for pointers anyway.

MozReview-Commit-ID: F41VlvTNOZU

--HG--
extra : rebase_source : 71d5dacac75ca188e5c55d45f48a5fca76d953c6
2016-11-08 15:12:33 +11:00
..
decimal
double-conversion
staticruntime Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
tests Bug 1315352 - enable Range<T> -> Range<const T> conversion; r=Waldo 2016-11-07 19:30:34 -04:00
Alignment.h
AllocPolicy.h
AlreadyAddRefed.h
Array.h Bug 1309466 - Enable Array and EnumeratedArray to be brace-initialized with initial contents. r=froydnj 2016-10-12 15:08:47 +08:00
ArrayUtils.h Bug 1277775 - Replace MOZ_CONSTEXPR{_VAR,_TMPL} with constexpr. r=froydnj 2016-07-08 14:39:53 -07:00
Assertions.cpp Bug 1309573 - Part 1: Define the crash reason in MFBT to let everything use it. r=froydnj 2016-11-06 22:57:00 -05:00
Assertions.h Bug 1309573 - Part 1: Define the crash reason in MFBT to let everything use it. r=froydnj 2016-11-06 22:57:00 -05:00
Atomics.h Bug 1277775 - Replace MOZ_CONSTEXPR{_VAR,_TMPL} with constexpr. r=froydnj 2016-07-08 14:39:53 -07:00
Attributes.h Bug 553032 - document MOZ_FORMAT_PRINTF; r=froydnj 2016-10-13 13:08:39 -06:00
BinarySearch.h
BloomFilter.h
BufferList.h Bug 1305791 - Clear result.mSegments if MoveFallible failed. r=billm 2016-09-30 17:37:44 +08:00
Casting.h Bug 1248555: Introduce variants of SpecificNaN / BitwiseCast that preserve the signaling NaN bit; r=froydnj 2016-08-01 20:02:05 +02:00
ChaosMode.cpp
ChaosMode.h
Char16.h Bug 1277106 - Part 1: Use VS2015's real char16_t instead of aliasing wchar_t. r=Waldo 2016-07-20 22:01:43 -07:00
CheckedInt.h
Compiler.h
Compression.cpp
Compression.h
DebugOnly.h
EndianUtils.h
EnumSet.h Bug 1311068 - remove InitializerList.h; r=botond 2016-10-19 00:33:14 -04:00
EnumTypeTraits.h Bug 1297306 - part4:rename IsEnumFittingWithin with EnumTypeFitsWithin and move it to mfbt/EnumTypeTraits.h. r=froydnj 2016-09-07 10:20:16 +08:00
EnumeratedArray.h Bug 1309466 - Enable Array and EnumeratedArray to be brace-initialized with initial contents. r=froydnj 2016-10-12 15:08:47 +08:00
EnumeratedRange.h Bug 1290035 - Remove the explicit Type parameter to MakeEnumeratedRange. r=Waldo 2016-07-28 17:48:50 +08:00
FastBernoulliTrial.h
FloatingPoint.cpp
FloatingPoint.h Bug 1311088 - Part 1: Add mozilla::SpecificNaNBits and JS::detail::CanonicalizedNaNBits. r=jwalden 2016-10-29 01:47:30 +09:00
Function.h
GuardObjects.h
HashFunctions.cpp
HashFunctions.h Bug 1277106 - Part 1: Use VS2015's real char16_t instead of aliasing wchar_t. r=Waldo 2016-07-20 22:01:43 -07:00
IndexSequence.h Bug 1277775 - Replace MOZ_CONSTEXPR{_VAR,_TMPL} with constexpr. r=froydnj 2016-07-08 14:39:53 -07:00
IntegerPrintfMacros.h
IntegerRange.h
IntegerTypeTraits.h
JSONWriter.cpp
JSONWriter.h Bug 1293384 - Part 1: Rename snprintf_literal to SprintfLiteral. r=froydnj 2016-08-14 23:44:00 -07:00
Likely.h
LinkedList.h Bug 1310547 - Add removeAndGetNext/Previous methods to LinkedList (r=froydnj) 2016-10-30 22:04:01 -07:00
LinuxSignal.h Bug 1238661 - fix mozilla::SignalTrampoline to work properly with clang; r=darchons 2016-07-25 18:16:06 -04:00
MacroArgs.h Bug 1299379 - Add MOZ_CONCAT for preprocessor token pasting. r=waldo 2016-09-11 15:49:50 +02:00
MacroForEach.h
MathAlgorithms.h Bug 1299284 - Remove js::IsPowerOfTwo in favor of mozilla::IsPowerOfTwo. r=sfink 2016-07-21 00:36:38 -07:00
Maybe.h Bug 1296760 - Allow Some(nullptr) and Some(Derived*) to convert to Maybe<Base*>. r=froydnj 2016-08-24 11:12:48 -07:00
MaybeOneOf.h
MemoryChecking.h
MemoryReporting.h
Move.h
NotNull.h
NullPtr.h
Opaque.h
OperatorNewExtensions.h Bug 1294537 - Don't tag |void* p| in the don't-nullcheck placement operator new overload as MOZ_NONNULL, because that makes a double-checking assertion of non-nullness into a compiler warning. r=froydnj 2016-08-12 18:02:03 -07:00
Pair.h
PodOperations.h
Poison.cpp
Poison.h
Range.h Bug 1315352 - follow-up - placate the static analysis to re-open this CLOSED TREE; r=me 2016-11-07 19:26:11 -05:00
RangedArray.h
RangedPtr.h Bug 1276573 - Add a new constructor for Range<T>. r=Waldo 2016-05-30 13:58:13 +08:00
ReentrancyGuard.h
RefCountType.h
RefCounted.h
RefPtr.h Bug 1316206 - Make RefPtr(decltype(nullptr)) MOZ_IMPLICIT - r=froydnj 2016-11-08 15:12:33 +11:00
ReverseIterator.h
RollingMean.h
SHA1.cpp
SHA1.h
STYLE
Saturate.h Bug 1288603 - Remove NumericLimits.h because all platforms have numeric_limits<char16_t>. r=froydnj 2016-07-22 22:05:45 -07:00
ScopeExit.h
Scoped.h
SegmentedVector.h
SizePrintfMacros.h
SplayTree.h Bug 1277775 - Replace MOZ_CONSTEXPR{_VAR,_TMPL} with constexpr. r=froydnj 2016-07-08 14:39:53 -07:00
Sprintf.h Bug 553032 - use MOZ_FORMAT_PRINTF, not explicit attribute; r=froydnj 2016-10-12 10:03:53 -06:00
StaticAnalysisFunctions.h Bug 1283395 - add markup functions for static analysis builds. r=froydnj 2016-07-25 16:57:30 +03:00
TaggedAnonymousMemory.cpp
TaggedAnonymousMemory.h
TemplateLib.h
ThreadLocal.h
ToString.h
Tuple.h
TypeTraits.h Bug 1303302 - Add IsDestructible trait in TypeTraits and use it for refcounted type static check. r=froydnj 2016-09-16 17:23:55 +10:00
TypedEnumBits.h Bug 1120059 - Remove unnecessary MOZ_EXPLICIT_CONVERSION macros. r=jwalden 2016-07-13 15:07:52 -07:00
Types.h
UniquePtr.h Bug 1277775 - Replace MOZ_CONSTEXPR{_VAR,_TMPL} with constexpr. r=froydnj 2016-07-08 14:39:53 -07:00
UniquePtrExtensions.h
Unused.cpp Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj 2016-08-24 14:47:04 +08:00
Unused.h Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj 2016-08-24 14:47:04 +08:00
Variant.h Bug 1287243 - Optimize the type used to store Variant's tag. r=fitzgen 2016-07-16 02:31:45 -07:00
Vector.h Bug 1294537 - introduce a non-null-checking placement operator new; r=sunfish,nbp 2016-08-12 22:43:49 -04:00
WeakPtr.h Bug 956338 - Add checks to WeakPtr/nsWeakReference and related classes to assert single-thread usage. r=nfroyd 2016-08-01 13:16:16 +02:00
WindowsVersion.h
XorShift128PlusRNG.h Bug 1277775 - Replace MOZ_CONSTEXPR{_VAR,_TMPL} with constexpr. r=froydnj 2016-07-08 14:39:53 -07:00
lz4.c
lz4.h
moz.build Bug 1311068 - remove InitializerList.h; r=botond 2016-10-19 00:33:14 -04:00
objs.mozbuild Bug 1309573 - Part 1: Define the crash reason in MFBT to let everything use it. r=froydnj 2016-11-06 22:57:00 -05:00