diff options
author | AnotherTest <ali.mpfard@gmail.com> | 2021-02-23 09:23:11 +0330 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-02-23 13:59:33 +0100 |
commit | 29c8d34be737265b2f8362c60f6730b16ddec1b8 (patch) | |
tree | 921479444b53fd8e65e25cb546c79f5de9922b6c /Userland/DevTools | |
parent | 644d981b2b81709ac09d59c708a5c1c4c7e99f94 (diff) | |
download | serenity-29c8d34be737265b2f8362c60f6730b16ddec1b8.zip |
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.
Diffstat (limited to 'Userland/DevTools')
-rw-r--r-- | Userland/DevTools/HackStudio/Editor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/DevTools/HackStudio/Editor.cpp b/Userland/DevTools/HackStudio/Editor.cpp index 2ccc05ffd4..52952fbe1f 100644 --- a/Userland/DevTools/HackStudio/Editor.cpp +++ b/Userland/DevTools/HackStudio/Editor.cpp @@ -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()); |