mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:47:45 +00:00
Everywhere: Rename ASSERT => VERIFY
(...and ASSERT_NOT_REACHED => VERIFY_NOT_REACHED) Since all of these checks are done in release builds as well, let's rename them to VERIFY to prevent confusion, as everyone is used to assertions being compiled out in release. We can introduce a new ASSERT macro that is specifically for debug checks, but I'm doing this wholesale conversion first since we've accumulated thousands of these already, and it's not immediately obvious which ones are suitable for ASSERT.
This commit is contained in:
parent
b33a6a443e
commit
5d180d1f99
725 changed files with 3448 additions and 3448 deletions
|
@ -38,7 +38,7 @@ auto Launcher::Details::from_details_str(const String& details_str) -> NonnullRe
|
|||
{
|
||||
auto details = adopt(*new Details);
|
||||
auto json = JsonValue::from_string(details_str);
|
||||
ASSERT(json.has_value());
|
||||
VERIFY(json.has_value());
|
||||
auto obj = json.value().as_object();
|
||||
details->executable = obj.get("executable").to_string();
|
||||
details->name = obj.get("name").to_string();
|
||||
|
@ -124,7 +124,7 @@ bool Launcher::open(const URL& url, const String& handler_name)
|
|||
|
||||
bool Launcher::open(const URL& url, const Details& details)
|
||||
{
|
||||
ASSERT(details.launcher_type != LauncherType::Application); // Launcher should not be used to execute arbitrary applications
|
||||
VERIFY(details.launcher_type != LauncherType::Application); // Launcher should not be used to execute arbitrary applications
|
||||
return open(url, details.executable);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue