From fd37324ae3c849d82660086c5fdae9fe30e43dc2 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Mon, 29 Jun 2015 14:26:40 +0200 Subject: [PATCH] These should all be fake booleans --- indra/newview/fsfloaterim.cpp | 50 +++++++++++++++++------------------ 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/indra/newview/fsfloaterim.cpp b/indra/newview/fsfloaterim.cpp index 534cb068bd..85f5ab65cf 100644 --- a/indra/newview/fsfloaterim.cpp +++ b/indra/newview/fsfloaterim.cpp @@ -540,7 +540,7 @@ void FSFloaterIM::doToSelected(const LLSD& userdata) { if (gSavedSettings.getBOOL("FSUseBuiltInHistory")) { - LLFloaterReg::showInstance("preview_conversation", mSessionID, true); + LLFloaterReg::showInstance("preview_conversation", mSessionID, TRUE); } else { @@ -620,7 +620,7 @@ void FSFloaterIM::updateCallButton() if (!session) { - getChild("call_btn")->setEnabled(false); + getChild("call_btn")->setEnabled(FALSE); return; } @@ -677,7 +677,7 @@ BOOL FSFloaterIM::postBuild() // AO: always hide the control panel to start. LL_DEBUGS("FSFloaterIM") << "mControlPanel->getParent()" << mControlPanel->getParent() << LL_ENDL; - mControlPanel->getParent()->setVisible(false); + mControlPanel->getParent()->setVisible(FALSE); LL_DEBUGS("FSFloaterIM") << "buttons setup in IM start" << LL_ENDL; @@ -702,10 +702,10 @@ BOOL FSFloaterIM::postBuild() case LLIMModel::LLIMSession::P2P_SESSION: // One-on-one IM { LL_DEBUGS("FSFloaterIM") << "LLIMModel::LLIMSession::P2P_SESSION" << LL_ENDL; - getChild("slide_panel")->setVisible(false); - getChild("gprofile_panel")->setVisible(false); - getChild("end_call_btn_panel")->setVisible(false); - getChild("voice_ctrls_btn_panel")->setVisible(false); + getChild("slide_panel")->setVisible(FALSE); + getChild("gprofile_panel")->setVisible(FALSE); + getChild("end_call_btn_panel")->setVisible(FALSE); + getChild("voice_ctrls_btn_panel")->setVisible(FALSE); LL_DEBUGS("FSFloaterIM") << "adding FSFloaterIM removing/adding particularfriendobserver" << LL_ENDL; LLAvatarTracker::instance().removeParticularFriendObserver(mOtherParticipantUUID, this); @@ -735,14 +735,14 @@ BOOL FSFloaterIM::postBuild() case LLIMModel::LLIMSession::GROUP_SESSION: // Group chat { LL_DEBUGS("FSFloaterIM") << "LLIMModel::LLIMSession::GROUP_SESSION start" << LL_ENDL; - getChild("profile_panel")->setVisible(false); - getChild("friend_panel")->setVisible(false); - getChild("tp_panel")->setVisible(false); - getChild("share_panel")->setVisible(false); - getChild("pay_panel")->setVisible(false); - getChild("end_call_btn_panel")->setVisible(false); - getChild("voice_ctrls_btn_panel")->setVisible(false); - getChild("add_participant_panel")->setVisible(false); + getChild("profile_panel")->setVisible(FALSE); + getChild("friend_panel")->setVisible(FALSE); + getChild("tp_panel")->setVisible(FALSE); + getChild("share_panel")->setVisible(FALSE); + getChild("pay_panel")->setVisible(FALSE); + getChild("end_call_btn_panel")->setVisible(FALSE); + getChild("voice_ctrls_btn_panel")->setVisible(FALSE); + getChild("add_participant_panel")->setVisible(FALSE); LL_DEBUGS("FSFloaterIM") << "LLIMModel::LLIMSession::GROUP_SESSION end" << LL_ENDL; break; @@ -750,21 +750,21 @@ BOOL FSFloaterIM::postBuild() case LLIMModel::LLIMSession::ADHOC_SESSION: // Conference chat { LL_DEBUGS("FSFloaterIM") << "LLIMModel::LLIMSession::ADHOC_SESSION start" << LL_ENDL; - getChild("profile_panel")->setVisible(false); - getChild("gprofile_panel")->setVisible(false); - getChild("friend_panel")->setVisible(false); - getChild("tp_panel")->setVisible(false); - getChild("share_panel")->setVisible(false); - getChild("pay_panel")->setVisible(false); - getChild("end_call_btn_panel")->setVisible(false); - getChild("voice_ctrls_btn_panel")->setVisible(false); + getChild("profile_panel")->setVisible(FALSE); + getChild("gprofile_panel")->setVisible(FALSE); + getChild("friend_panel")->setVisible(FALSE); + getChild("tp_panel")->setVisible(FALSE); + getChild("share_panel")->setVisible(FALSE); + getChild("pay_panel")->setVisible(FALSE); + getChild("end_call_btn_panel")->setVisible(FALSE); + getChild("voice_ctrls_btn_panel")->setVisible(FALSE); LL_DEBUGS("FSFloaterIM") << "LLIMModel::LLIMSession::ADHOC_SESSION end" << LL_ENDL; break; } default: LL_DEBUGS("FSFloaterIM") << "default buttons start" << LL_ENDL; - getChild("end_call_btn_panel")->setVisible(false); - getChild("voice_ctrls_btn_panel")->setVisible(false); + getChild("end_call_btn_panel")->setVisible(FALSE); + getChild("voice_ctrls_btn_panel")->setVisible(FALSE); LL_DEBUGS("FSFloaterIM") << "default buttons end" << LL_ENDL; break; }