Bug 1218315 - Replace NS_LITERAL_STRING(...).get() with MOZ_UTF16(...) on xpcom. r=nfroyd

This commit is contained in:
Makoto Kato 2015-10-28 14:29:49 +09:00
parent 99903f5ab5
commit 0298c31d73
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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)