Przeglądaj źródła

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 lat temu
rodzic
commit
29c8d34be7
1 zmienionych plików z 1 dodań i 1 usunięć
  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());