Closed Bug 291635 Opened 20 years ago Closed 20 years ago

nsAbWinHelper.cpp fails to compile with Microsoft Visual Studio 2005 Beta 2

Categories

(SeaMonkey :: MailNews: Address Book & Contacts, defect)

x86
Windows XP
defect
Not set
blocker

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: stdowa+bugzilla, Unassigned)

References

Details

Attachments

(1 file)

c:/Mozilla/mozilla/mailnews/addrbook/src/nsAbWinHelper.cpp(567) : error C2440: 'const_cast' : cannot convert from 'const PRUnichar *' to 'WO RD *' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast c:/Mozilla/mozilla/mailnews/addrbook/src/nsAbWinHelper.cpp(595) : error C2440: 'const_cast' : cannot convert from 'const nsAString::char_typ e *' to 'WORD *' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast c:/Mozilla/mozilla/mailnews/addrbook/src/nsAbWinHelper.cpp(684) : error C2440: 'const_cast' : cannot convert from 'const nsAString::char_typ e *' to 'WORD *' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast c:/Mozilla/mozilla/mailnews/addrbook/src/nsAbWinHelper.cpp(747) : error C2440: 'const_cast' : cannot convert from 'const nsAString::char_typ e *' to 'WORD *' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
This can be solved by replacing "WORD *" with "WCHAR *" (LPWSTR should work also)
Attachment #182211 - Flags: review?(bienvenu)
Attachment #182211 - Flags: review?(bienvenu) → review+
Attachment #182211 - Flags: superreview?(darin)
Attachment #182211 - Flags: superreview?(darin) → superreview+
Comment on attachment 182211 [details] [diff] [review] Use WCHAR * rather than WORD * Low risk patch to allow Visual Studio 2005 Beta 2 to build addrbook.
Attachment #182211 - Flags: approval1.8b2?
Attachment #182211 - Flags: approval1.8b2? → approval1.8b2+
Comment on attachment 182211 [details] [diff] [review] Use WCHAR * rather than WORD * a=chofmann
checked in by db48x
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: