Mike Hommey 6249d7a7f0 Bug 1883805 - Fix clang-plugin errors. r=nika
/builds/worker/checkouts/gecko/widget/uikit/TextInputHandler.h:26:3: error: bad implicit conversion constructor for 'TextInputHandler'
   26 |   TextInputHandler(nsWindow* aWidget);
      |   ^
/builds/worker/checkouts/gecko/widget/uikit/TextInputHandler.h:26:3: note: consider adding the explicit keyword to the constructor
   26 |   TextInputHandler(nsWindow* aWidget);
      |   ^
      |   explicit
/builds/worker/checkouts/gecko/widget/uikit/nsWindow.mm:78:3: error: bad implicit conversion constructor for 'nsAutoRetainUIKitObject'
   78 |   nsAutoRetainUIKitObject(id anObject) { mObject = [anObject retain]; }
      |   ^
/builds/worker/checkouts/gecko/widget/uikit/nsWindow.mm:78:3: note: consider adding the explicit keyword to the constructor
   78 |   nsAutoRetainUIKitObject(id anObject) { mObject = [anObject retain]; }
      |   ^
      |   explicit
/builds/worker/checkouts/gecko/widget/uikit/nsWindow.mm:943:3: error: Unused "kungFuDeathGrip" 'nsCOMPtr<nsIWidget>' objects constructed from members are prohibited
  943 |   nsCOMPtr<nsIWidget> kungFuDeathGrip(aEvent->mWidget);
      |   ^
/builds/worker/checkouts/gecko/widget/uikit/nsWindow.mm:943:39: note: Please switch all accesses to this member to go through 'kungFuDeathGrip', or explicitly pass 'kungFuDeathGrip' to `mozilla::Unused`
  943 |   nsCOMPtr<nsIWidget> kungFuDeathGrip(aEvent->mWidget);
      |                                       ^

Differential Revision: https://phabricator.services.mozilla.com/D203700
2024-03-06 20:28:49 +00:00
..