Closed Bug 872031 Opened 11 years ago Closed 11 years ago

clang 3.3 compile errors in accessible/src/mac/AccessibleWrap.mm

Categories

(Core :: Disability Access APIs, defect)

All
macOS
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: froydnj, Unassigned)

References

Details

Attachments

(1 file)

/Users/froydnj/src/mozilla-central-official/accessible/src/mac/AccessibleWrap.mm:37:37: error:
      expected expression
    mNativeObject = [[GetNativeType() alloc] initWithAccessible:this];
                                    ^
/Users/froydnj/src/mozilla-central-official/accessible/src/mac/AccessibleWrap.mm:193:20: error:
      expected expression
  [GetNativeObject() invalidateChildren];
                   ^
2 errors generated.
I don't pretend to understand exactly what Objective-C++ wants here, but helping
the compiler out by making the method call expression explicit appears to help.
Attachment #749292 - Flags: review?(trev.saunders)
Comment on attachment 749292 [details] [diff] [review]
fix clang 3.3 compile errors in AccessibleWrap.mm

Looks good to me. I have no idea what the changed in clang 3.3 but this is what is expected: calling GetNativeType() and GetNativeObject() on this.

(I'm not peer of the module, but I was the maintainer of the Mac code)
Attachment #749292 - Flags: review+
I really mean: wait that Trevor reviews it too. His call.
Comment on attachment 749292 [details] [diff] [review]
fix clang 3.3 compile errors in AccessibleWrap.mm

I don't understnad the error message or what is or isn't wrong, but seems harmless so r=me
Attachment #749292 - Flags: review?(trev.saunders) → review+
I think this was really just seen in clang HEAD builds and they probably fixed it at some point...
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: