Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8916949b authored by Henri Chataing's avatar Henri Chataing
Browse files

Replace fmt::throw_format_error with fmt::report_error

fmt::throw_format_error is deprecated in favor
of fmt::report_error. The behaviour is exactly the same.

Bug: 331817295
Test: m com.android.btservices
Flag: EXEMPT, no logical change
Change-Id: I6f98eca50e77fbedf9d4284590600f3a07384dc7
parent ebc04054
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -122,7 +122,7 @@ struct fmt::formatter<bluetooth::hci::Address> {

    // Check if reached the end of the range:
    if (it != end && *it != '}') {
      throw_format_error("invalid format");
      report_error("invalid format");
    }

    // Return an iterator past the end of the parsed range:
+1 −1
Original line number Diff line number Diff line
@@ -153,7 +153,7 @@ struct fmt::formatter<bluetooth::hci::AddressWithType> {

    // Check if reached the end of the range:
    if (it != end && *it != '}') {
      throw_format_error("invalid format");
      report_error("invalid format");
    }

    // Return an iterator past the end of the parsed range: