diff options
author | Steven Bennetts <steve@lindenlab.com> | 2008-06-26 00:39:00 +0000 |
---|---|---|
committer | Steven Bennetts <steve@lindenlab.com> | 2008-06-26 00:39:00 +0000 |
commit | 25c10ed028da5c547b11f1f461916897272b0e6d (patch) | |
tree | 350a5858f8970b6e28b2dc395625d74d8bd597b2 /indra/win_crash_logger | |
parent | 6dd125d375b38455997a0c4b8747659f4c2351aa (diff) |
QAR-628 merge string-cleanup-5 -r 90476:90508 -> release
dataserver-is-deprecated
Diffstat (limited to 'indra/win_crash_logger')
-rw-r--r-- | indra/win_crash_logger/llcrashloggerwindows.cpp | 10 | ||||
-rw-r--r-- | indra/win_crash_logger/llcrashloggerwindows.h | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/indra/win_crash_logger/llcrashloggerwindows.cpp b/indra/win_crash_logger/llcrashloggerwindows.cpp index b09821977d..40dbc3bbd0 100644 --- a/indra/win_crash_logger/llcrashloggerwindows.cpp +++ b/indra/win_crash_logger/llcrashloggerwindows.cpp @@ -59,7 +59,7 @@ HINSTANCE hInst= NULL; // current instance TCHAR szTitle[MAX_LOADSTRING]; /* Flawfinder: ignore */ // The title bar text TCHAR szWindowClass[MAX_LOADSTRING]; /* Flawfinder: ignore */ // The title bar text -LLString gProductName; +std::string gProductName; HWND gHwndReport = NULL; // Send/Don't Send dialog HWND gHwndProgress = NULL; // Progress window HCURSOR gCursorArrow = NULL; @@ -97,7 +97,7 @@ void write_debug(std::string& str) write_debug(str.c_str()); } -void show_progress(const char* message) +void show_progress(const std::string& message) { std::wstring msg = wstring_to_utf16str(utf8str_to_wstring(message)); if (gHwndProgress) @@ -198,7 +198,7 @@ bool handle_button_click(WORD button_id) wbuffer, // pointer to buffer for text 20000 // maximum size of string ); - LLString user_text(ll_convert_wide_to_string(wbuffer)); + std::string user_text(ll_convert_wide_to_string(wbuffer)); // Activate and show the window. ShowWindow(gHwndProgress, SW_SHOW); // Try doing this second to make the progress window go frontmost. @@ -357,10 +357,10 @@ bool LLCrashLoggerWindows::mainLoop() return 0; } -void LLCrashLoggerWindows::updateApplication(LLString message) +void LLCrashLoggerWindows::updateApplication(const std::string& message) { LLCrashLogger::updateApplication(); - if(message != "") show_progress(message.c_str()); + if(!message.empty()) show_progress(message); update_messages(); } diff --git a/indra/win_crash_logger/llcrashloggerwindows.h b/indra/win_crash_logger/llcrashloggerwindows.h index 1f5a216947..45c3b4772b 100644 --- a/indra/win_crash_logger/llcrashloggerwindows.h +++ b/indra/win_crash_logger/llcrashloggerwindows.h @@ -44,7 +44,7 @@ public: ~LLCrashLoggerWindows(void); virtual bool init(); virtual bool mainLoop(); - virtual void updateApplication(LLString message = ""); + virtual void updateApplication(const std::string& message = LLStringUtil::null); virtual bool cleanup(); virtual void gatherPlatformSpecificFiles(); //void annotateCallStack(); |