Closed Bug 1117636 Opened 6 years ago Closed 6 years ago

Declare that MacApplicationDelegate implements NSFileManagerDelegate protocol to fix -Wincompatible-pointer-types warning

Categories

(Toolkit :: General, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1117635

People

(Reporter: cpeterson, Assigned: cpeterson)

References

(Blocks 1 open bug)

Details

This patch fixes the following clang warning about MacApplicationDelegate pointer being passed to setDelegate even though it doesn't declare that is implements the NSFileManagerDelegate protocol:

toolkit/xre/MacApplicationDelegate.mm:93:22 [-Wincompatible-pointer-types] incompatible pointer types sending 'MacApplicationDelegate *' to parameter of type 'id<NSFileManagerDelegate>'
oops
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 1117635
You need to log in before you can comment on or make changes to this bug.