summaryrefslogtreecommitdiff
path: root/Userland/DevTools
diff options
context:
space:
mode:
authorAnotherTest <ali.mpfard@gmail.com>2021-02-23 09:23:11 +0330
committerAndreas Kling <kling@serenityos.org>2021-02-23 13:59:33 +0100
commit29c8d34be737265b2f8362c60f6730b16ddec1b8 (patch)
tree921479444b53fd8e65e25cb546c79f5de9922b6c /Userland/DevTools
parent644d981b2b81709ac09d59c708a5c1c4c7e99f94 (diff)
downloadserenity-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.cpp2
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());