Bug 1198450 - GCC (mingw) fixup.
authorJacek Caban <jacek@codeweavers.com>
Tue, 01 Dec 2015 14:20:41 +0100
changeset 274896 5545627073b95f3a240a3078082d9ad472c8aa24
parent 274895 d9a1efa7d1ab0c74cc2f297e627221d454515fe3
child 274897 ed2b80d144f9eaf50d68cfeb68d613671ef5eb52
push id68714
push userjacek@codeweavers.com
push dateTue, 01 Dec 2015 13:20:36 +0000
treeherdermozilla-inbound@5545627073b9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1198450
milestone45.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1198450 - GCC (mingw) fixup.
ipc/glue/GeckoChildProcessHost.cpp
--- a/ipc/glue/GeckoChildProcessHost.cpp
+++ b/ipc/glue/GeckoChildProcessHost.cpp
@@ -540,17 +540,17 @@ AddAppDirToCommandLine(std::vector<std::
       nsresult rv = directoryService->Get(NS_XPCOM_CURRENT_PROCESS_DIR,
                                           NS_GET_IID(nsIFile),
                                           getter_AddRefs(appDir));
       if (NS_SUCCEEDED(rv)) {
 #if defined(XP_WIN)
         nsString path;
         MOZ_ALWAYS_TRUE(NS_SUCCEEDED(appDir->GetPath(path)));
         aCmdLine.AppendLooseValue(UTF8ToWide("-appdir"));
-        std::wstring wpath = path.get();
+        std::wstring wpath(path.get());
         aCmdLine.AppendLooseValue(wpath);
 #else
         nsAutoCString path;
         MOZ_ALWAYS_TRUE(NS_SUCCEEDED(appDir->GetNativePath(path)));
         aCmdLine.push_back("-appdir");
         aCmdLine.push_back(path.get());
 #endif
       }