From 29c8d34be737265b2f8362c60f6730b16ddec1b8 Mon Sep 17 00:00:00 2001 From: AnotherTest Date: Tue, 23 Feb 2021 09:23:11 +0330 Subject: HackStudio: Fix a misuse of dbgln() intended as dbgln_if() This currently works accidentally, just because there's an overload for `dbgln(...)` - it just bypasses the compiletime checks. --- Userland/DevTools/HackStudio/Editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Userland/DevTools') 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()); -- cgit v1.2.3