Convert mForcePressedState to bool from BOOL

master
James Cook 2009-11-16 12:36:35 -08:00
parent a1cb7debf8
commit d5efbfcd28
3 changed files with 5 additions and 5 deletions

View File

@ -146,7 +146,7 @@ LLButton::LLButton(const LLButton::Params& p)
mHoverGlowStrength(p.hover_glow_amount),
mCommitOnReturn(p.commit_on_return),
mFadeWhenDisabled(FALSE),
mForcePressedState(FALSE),
mForcePressedState(false),
mLastDrawCharsCount(0)
{
static LLUICachedControl<S32> llbutton_orig_h_pad ("UIButtonOrigHPad", 0);

View File

@ -238,7 +238,7 @@ public:
static void setDockableFloaterToggle(LLUICtrl* ctrl, const LLSD& sdname);
static void showHelp(LLUICtrl* ctrl, const LLSD& sdname);
void setForcePressedState(BOOL b) { mForcePressedState = b; }
void setForcePressedState(bool b) { mForcePressedState = b; }
protected:
LLPointer<LLUIImage> getImageUnselected() const { return mImageUnselected; }
@ -315,7 +315,7 @@ private:
BOOL mNeedsHighlight;
BOOL mCommitOnReturn;
BOOL mFadeWhenDisabled;
BOOL mForcePressedState;
bool mForcePressedState;
LLFrameTimer mFlashingTimer;
};

View File

@ -133,11 +133,11 @@ void LLMenuButton::draw()
if (mMenuVisibleLastFrame)
{
setForcePressedState(TRUE);
setForcePressedState(true);
}
LLButton::draw();
setForcePressedState(FALSE);
setForcePressedState(false);
}