Commit 5e5438fe by Jeff Gilbert Committed by Commit Bot

Make operator bool() explicit, and remove explicit from move ctors.

Gecko bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1371190 BUG=angleproject:2211 Change-Id: I10b866728a844668de6373c3a0968ea4e8256ff7 Reviewed-on: https://chromium-review.googlesource.com/747841Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Commit-Queue: Geoff Lang <geofflang@chromium.org>
parent 20c285ec
...@@ -35,7 +35,7 @@ class BitSetT final ...@@ -35,7 +35,7 @@ class BitSetT final
mParent->set(mBit, x); mParent->set(mBit, x);
return *this; return *this;
} }
operator bool() const { return mParent->test(mBit); } explicit operator bool() const { return mParent->test(mBit); }
private: private:
friend class BitSetT; friend class BitSetT;
......
...@@ -23,7 +23,7 @@ class VertexBinding final : angle::NonCopyable ...@@ -23,7 +23,7 @@ class VertexBinding final : angle::NonCopyable
{ {
public: public:
VertexBinding(); VertexBinding();
explicit VertexBinding(VertexBinding &&binding); VertexBinding(VertexBinding &&binding);
VertexBinding &operator=(VertexBinding &&binding); VertexBinding &operator=(VertexBinding &&binding);
GLuint getStride() const { return mStride; } GLuint getStride() const { return mStride; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment