mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 09:00:22 +00:00
HackStudio: Fix a misuse of dbgln() intended as dbgln_if()
This currently works accidentally, just because there's an overload for `dbgln<bool>(...)` - it just bypasses the compiletime checks.
This commit is contained in:
parent
644d981b2b
commit
29c8d34be7
Notes:
sideshowbarker
2024-07-18 21:59:58 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/29c8d34be73 Pull-request: https://github.com/SerenityOS/serenity/pull/5468
1 changed files with 1 additions and 1 deletions
|
@ -163,7 +163,7 @@ void Editor::show_documentation_tooltip_if_available(const String& hovered_token
|
|||
return;
|
||||
}
|
||||
|
||||
dbgln(EDITOR_DEBUG, "opening {}", it->value);
|
||||
dbgln_if(EDITOR_DEBUG, "opening {}", it->value);
|
||||
auto file = Core::File::construct(it->value);
|
||||
if (!file->open(Core::File::ReadOnly)) {
|
||||
dbgln("failed to open {}, {}", it->value, file->error_string());
|
||||
|
|
Loading…
Reference in a new issue