mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-20 15:27:32 +09:00
Bug 1442648 - Fix mismatched types in mingw-w64 builds (const char16_t*/char16ptr_t).
When cross-compiling for Windows on Linux, fix mismatched types in nsMsgImapSearch.cpp. nsString::get() returns a char16ptr_t (with MOZ_USE_CHAR16_WRAPPER) and that causes a mismatch so we cast it to a const char16_t*. usAsciiCharSet is declared as a nsAutoString so we instead declare it as a char16_t* to avoid subsequent type mismatches. Tag #1273
This commit is contained in:
parent
0f885aaad1
commit
3f68fdb0f4
2 changed files with 6 additions and 6 deletions
|
|
@ -975,7 +975,7 @@ RFC2231ParmFolding(const char *parmName, const nsCString& charset,
|
|||
bool needEscape;
|
||||
nsCString dupParm;
|
||||
|
||||
if (!NS_IsAscii(parmValue.get()) || is7bitCharset(charset)) {
|
||||
if (!NS_IsAscii(static_cast<const char16_t*>(parmValue.get())) || is7bitCharset(charset)) {
|
||||
needEscape = true;
|
||||
nsAutoCString nativeParmValue;
|
||||
ConvertFromUnicode(charset.get(), parmValue, nativeParmValue);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue