зеркало из https://github.com/mozilla/pjs.git
Bug 53057: Fixing up users of implicit |CharT*| conversion operators for nsCString to use |.get()| instead, rr=dbaron, rs=scc
This commit is contained in:
Родитель
42c3677574
Коммит
372e6d8954
|
@ -1581,7 +1581,7 @@ nsNativeAppSupportOS2::HandleRequest( LPBYTE request, PRBool newWindow ) {
|
||||||
nsCString taskURL;
|
nsCString taskURL;
|
||||||
rv = GetStartupURL(args, taskURL);
|
rv = GetStartupURL(args, taskURL);
|
||||||
if (NS_SUCCEEDED(rv) && NS_SUCCEEDED(nativeApp->EnsureProfile(args))) {
|
if (NS_SUCCEEDED(rv) && NS_SUCCEEDED(nativeApp->EnsureProfile(args))) {
|
||||||
(void)OpenWindow(taskURL, "");
|
(void)OpenWindow(taskURL.get(), "");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1632,7 +1632,7 @@ nsNativeAppSupportOS2::HandleRequest( LPBYTE request, PRBool newWindow ) {
|
||||||
if (defaultArgs) {
|
if (defaultArgs) {
|
||||||
nsCAutoString url;
|
nsCAutoString url;
|
||||||
url.AssignWithConversion( defaultArgs );
|
url.AssignWithConversion( defaultArgs );
|
||||||
OpenBrowserWindow((const char*)url);
|
OpenBrowserWindow(url.get());
|
||||||
} else {
|
} else {
|
||||||
OpenBrowserWindow("about:blank");
|
OpenBrowserWindow("about:blank");
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче