forked from mirrors/gecko-dev
Bug 1664374 - Replace MOZ_MUST_USE with [[nodiscard]] in hal. r=gsvelto
The MOZ_MUST_USE macro is defined as clang's and gcc's nonstandard __attribute__((warn_unused_result)). Now that we compile as C++17 by default (bug 1560664), we can replace MOZ_MUST_USE with C++17's standard [[nodiscard]] attribute. Differential Revision: https://phabricator.services.mozilla.com/D89871
This commit is contained in:
parent
3dd6180180
commit
a7ec09ed1e
1 changed files with 1 additions and 1 deletions
|
|
@ -234,7 +234,7 @@ void NotifyScreenConfigurationChange(
|
||||||
* Lock the screen orientation to the specific orientation.
|
* Lock the screen orientation to the specific orientation.
|
||||||
* @return Whether the lock has been accepted.
|
* @return Whether the lock has been accepted.
|
||||||
*/
|
*/
|
||||||
MOZ_MUST_USE bool LockScreenOrientation(
|
[[nodiscard]] bool LockScreenOrientation(
|
||||||
const hal::ScreenOrientation& aOrientation);
|
const hal::ScreenOrientation& aOrientation);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue