Closed Bug 1262799 Opened 4 years ago Closed 4 years ago

error: cannot initialize an array element of type 'const char *' with an rvalue of type 'int'

Categories

(MailNews Core :: Backend, defect, blocker)

defect
Not set
blocker

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 48.0

People

(Reporter: aleth, Assigned: Paenglab)

References

Details

(Keywords: regression)

Attachments

(1 file)

27:14.89 
c:/mozilla-source/comm-central/mailnews/intl/nsCharsetAlias.cpp(22) : 
error C2440: 'initializing' : cannot conv
ert from 'int' to 'const char *'
27:14.89         Conversion from integral type to pointer type requires 
reinterpret_cast, C-style cast or function-style
  cast
27:14.89 
c:/mozilla-source/comm-central/mailnews/intl/nsCharsetAlias.cpp(36) : 
error C2664: 'nsresult nsUConvPropertySea
rch::SearchPropertyValue(const nsUConvProp [],int32_t,const 
nsACString_internal &,nsACString_internal &)' : cannot conve
rt argument 1 from 'const char *[53][3]' to 'const nsUConvProp []'
27:14.89         Types pointed to are unrelated; conversion requires 
reinterpret_cast, C-style cast or function-style cast
Blocks: 1262324
Attached patch 1262799.patchSplinter Review
Hey it seems, I'm a C++ programmer too. ;) This was so easy, also a noob like me can fix this.
Assignee: nobody → richard.marti
Status: NEW → ASSIGNED
Attachment #8739003 - Flags: review?(mozilla)
Keywords: regression
I was out for a few hours, I'll be right with it. Where did you detect nsUConvProp?
Comment on attachment 8739003 [details] [diff] [review]
1262799.patch

Review of attachment 8739003 [details] [diff] [review]:
-----------------------------------------------------------------

Great. Another bustage fixed.
Attachment #8739003 - Flags: review?(mozilla) → review+
Thank you

https://hg.mozilla.org/comm-central/rev/277d2dab8e65
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 48.0
You need to log in before you can comment on or make changes to this bug.