From 25c10ed028da5c547b11f1f461916897272b0e6d Mon Sep 17 00:00:00 2001 From: Steven Bennetts Date: Thu, 26 Jun 2008 00:39:00 +0000 Subject: QAR-628 merge string-cleanup-5 -r 90476:90508 -> release dataserver-is-deprecated --- indra/newview/lluploaddialog.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'indra/newview/lluploaddialog.cpp') diff --git a/indra/newview/lluploaddialog.cpp b/indra/newview/lluploaddialog.cpp index 686e386578..e347affa52 100644 --- a/indra/newview/lluploaddialog.cpp +++ b/indra/newview/lluploaddialog.cpp @@ -64,7 +64,7 @@ void LLUploadDialog::modalUploadFinished() LLUploadDialog::LLUploadDialog( const std::string& msg) : - LLPanel( "Uploading...", LLRect(0,100,100,0) ) // dummy rect. Will reshape below. + LLPanel( std::string("Uploading..."), LLRect(0,100,100,0) ) // dummy rect. Will reshape below. { setBackgroundVisible( TRUE ); @@ -78,7 +78,7 @@ LLUploadDialog::LLUploadDialog( const std::string& msg) LLRect msg_rect; for (int line_num=0; line_num<16; ++line_num) { - mLabelBox[line_num] = new LLTextBox( "Filename", msg_rect, "Filename", font ); + mLabelBox[line_num] = new LLTextBox( std::string("Filename"), msg_rect, std::string("Filename"), font ); addChild(mLabelBox[line_num]); } @@ -116,9 +116,10 @@ void LLUploadDialog::setMessage( const std::string& msg) char* token = strtok( temp_msg, "\n" ); while( token ) { - S32 cur_width = S32(font->getWidth(token) + 0.99f) + TEXT_PAD; + std::string tokstr(token); + S32 cur_width = S32(font->getWidth(tokstr) + 0.99f) + TEXT_PAD; max_msg_width = llmax( max_msg_width, cur_width ); - msg_lines.push_back( std::string( token ) ); + msg_lines.push_back( tokstr ); token = strtok( NULL, "\n" ); } delete[] temp_msg; -- cgit v1.3