浏览代码

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.
AnotherTest 4 年之前
父节点
当前提交
29c8d34be7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Userland/DevTools/HackStudio/Editor.cpp

+ 1 - 1
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());