summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterconversationpreview.cpp
diff options
context:
space:
mode:
authormaksymsproductengine <maksymsproductengine@lindenlab.com>2013-09-10 20:17:43 +0300
committermaksymsproductengine <maksymsproductengine@lindenlab.com>2013-09-10 20:17:43 +0300
commit8a0b7eaaddf9170db5f205d94f680915da13239c (patch)
tree7b2028fa1bbb4fa64adcc4a1298952465cd87539 /indra/newview/llfloaterconversationpreview.cpp
parentd995782edf1a55c327ad3f3349bd9d4b6ec3d9e6 (diff)
parente2019e8a3b5175eb6d7322fbe7c466f213854640 (diff)
Merge for MAINT-3117
Diffstat (limited to 'indra/newview/llfloaterconversationpreview.cpp')
-rwxr-xr-xindra/newview/llfloaterconversationpreview.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/indra/newview/llfloaterconversationpreview.cpp b/indra/newview/llfloaterconversationpreview.cpp
index 39630320a9..dd8bea01b4 100755
--- a/indra/newview/llfloaterconversationpreview.cpp
+++ b/indra/newview/llfloaterconversationpreview.cpp
@@ -99,7 +99,7 @@ void LLFloaterConversationPreview::setPages(std::list<LLSD>& messages, const std
{
if(file_name == mChatHistoryFileName)
{
- // additional protection to avoid changes of mMessages in setPages
+ // additional protection to avoid changes of mMessages in setPages()
LLMutexLock lock(&mMutex);
mMessages = messages;
mCurrentPage = (mMessages.size() ? (mMessages.size() - 1) / mPageSize : 0);
@@ -111,10 +111,9 @@ void LLFloaterConversationPreview::setPages(std::list<LLSD>& messages, const std
std::string total_page_num = llformat("/ %d", mCurrentPage+1);
getChild<LLTextBox>("page_num_label")->setValue(total_page_num);
mChatHistoryLoaded = true;
-
}
-
}
+
void LLFloaterConversationPreview::draw()
{
if(mChatHistoryLoaded)
@@ -148,7 +147,6 @@ void LLFloaterConversationPreview::showHistory()
}
mChatHistory->clear();
-
std::ostringstream message;
std::list<LLSD>::const_iterator iter = mMessages.begin();
std::advance(iter, mCurrentPage * mPageSize);
@@ -198,7 +196,6 @@ void LLFloaterConversationPreview::showHistory()
mChatHistory->appendMessage(chat,chat_args);
}
-
}
void LLFloaterConversationPreview::onMoreHistoryBtnClick()