Convert mForcePressedState to bool from BOOL
parent
a1cb7debf8
commit
d5efbfcd28
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -133,11 +133,11 @@ void LLMenuButton::draw()
|
|||
|
||||
if (mMenuVisibleLastFrame)
|
||||
{
|
||||
setForcePressedState(TRUE);
|
||||
setForcePressedState(true);
|
||||
}
|
||||
|
||||
LLButton::draw();
|
||||
|
||||
setForcePressedState(FALSE);
|
||||
setForcePressedState(false);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue