summaryrefslogtreecommitdiff
path: root/indra/newview/llappviewerwin32.cpp
diff options
context:
space:
mode:
authorAura Linden <aura@lindenlab.com>2014-01-14 15:28:35 -0800
committerAura Linden <aura@lindenlab.com>2014-01-14 15:28:35 -0800
commitea7e6a5174f1bdfc51ada864736d354706534d8b (patch)
treec3b6be6d25b33e41ce01edabb6f0bf91ce3afb38 /indra/newview/llappviewerwin32.cpp
parent1269634e21078ad0af12d29c41778039e9f195ec (diff)
Some cleanup of string to wstring conversion and vice versa.
Diffstat (limited to 'indra/newview/llappviewerwin32.cpp')
-rw-r--r--indra/newview/llappviewerwin32.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/newview/llappviewerwin32.cpp b/indra/newview/llappviewerwin32.cpp
index 6946130631..c861d0a99f 100644
--- a/indra/newview/llappviewerwin32.cpp
+++ b/indra/newview/llappviewerwin32.cpp
@@ -65,6 +65,8 @@
#include "llwindebug.h"
#endif
+#include "stringize.h"
+
#include <exception>
namespace
{
@@ -685,8 +687,6 @@ void LLAppViewerWin32::initCrashReporting(bool reportFreeze)
exe_path += gDirUtilp->getDirDelimiter();
exe_path += logger_name;
- std::stringstream pid_str;
- pid_str << LLApp::getPid();
std::string logdir = gDirUtilp->getExpandedFilename(LL_PATH_DUMP, "");
std::string appname = gDirUtilp->getExecutableFilename();
@@ -698,7 +698,7 @@ void LLAppViewerWin32::initCrashReporting(bool reportFreeze)
{
logdir = logdir.substr(0,end+1);
}
- std::string arg_str = "\"" + exe_path + "\" -dumpdir \"" + logdir + "\" -procname \"" + appname + "\" -pid " + pid_str.str();
+ std::string arg_str = "\"" + exe_path + "\" -dumpdir \"" + logdir + "\" -procname \"" + appname + "\" -pid " + stringize(LLApp::getPid());
_spawnl(_P_NOWAIT, exe_path.c_str(), arg_str.c_str(), NULL);
}