Skip to content
Snippets Groups Projects
Commit 0f1cf6e4 authored by Nat Goodspeed's avatar Nat Goodspeed
Browse files

Clarify for VS 2013 that an operator bool() method returns bool.

For some reason VS 2013 (unlike its predecessors and other current compilers)
needs us to explicitly convert an operator bool() method's return expression
to bool.  :-P
parent 3d94afaf
No related branches found
No related tags found
No related merge requests found
......@@ -67,7 +67,7 @@ class LLEventPumpOrPumpName
LLEventPumpOrPumpName() {}
operator LLEventPump& () const { return *mPump; }
LLEventPump& getPump() const { return *mPump; }
operator bool() const { return mPump; }
operator bool() const { return bool(mPump); }
bool operator!() const { return ! mPump; }
private:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment