Skip to content

Commit

Permalink
Bug 1356063 - Make Maybe<T> inherit static analysis annotations from …
Browse files Browse the repository at this point in the history
…T, r=mystor

--HG--
extra : rebase_source : 7f5e41e471b319f0143e9f91a331b1edcafc7359
  • Loading branch information
hotsphink committed Apr 13, 2017
1 parent ec5f176 commit 678a2ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mfbt/Maybe.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ struct Nothing { };
* whether or not this is still a problem.
*/
template<class T>
class MOZ_NON_PARAM Maybe
class MOZ_NON_PARAM MOZ_INHERIT_TYPE_ANNOTATIONS_FROM_TEMPLATE_ARGS Maybe
{
alignas(T) unsigned char mStorage[sizeof(T)];
char mIsSome; // not bool -- guarantees minimal space consumption
Expand Down

0 comments on commit 678a2ca

Please sign in to comment.