mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-10 17:24:29 +00:00
Bug 1218315 - Replace NS_LITERAL_STRING(...).get() with MOZ_UTF16(...) on xpcom. r=nfroyd
This commit is contained in:
parent
99903f5ab5
commit
0298c31d73
@ -191,7 +191,7 @@ nsresult GetInstallYear(uint32_t& aYear)
|
||||
time_t raw_time = 0;
|
||||
DWORD time_size = sizeof(time_t);
|
||||
|
||||
status = RegQueryValueExW(hKey, NS_LITERAL_STRING("InstallDate").get(),
|
||||
status = RegQueryValueExW(hKey, MOZ_UTF16("InstallDate"),
|
||||
nullptr, &type, (LPBYTE)&raw_time, &time_size);
|
||||
|
||||
if (status != ERROR_SUCCESS) {
|
||||
|
@ -572,7 +572,7 @@ ParseManifest(NSLocationType aType, FileLocation& aFile, char* aBuf,
|
||||
#elif defined(MOZ_WIDGET_COCOA)
|
||||
SInt32 majorVersion = nsCocoaFeatures::OSXVersionMajor();
|
||||
SInt32 minorVersion = nsCocoaFeatures::OSXVersionMinor();
|
||||
nsTextFormatter::ssprintf(osVersion, NS_LITERAL_STRING("%ld.%ld").get(),
|
||||
nsTextFormatter::ssprintf(osVersion, MOZ_UTF16("%ld.%ld"),
|
||||
majorVersion,
|
||||
minorVersion);
|
||||
#elif defined(MOZ_WIDGET_GTK)
|
||||
|
Loading…
x
Reference in New Issue
Block a user