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
master
Nat Goodspeed 2014-12-10 12:20:33 -05:00
parent 3d94afafb5
commit 0f1cf6e405
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ public:
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: