From 095e2cc3bedd86943f0cac6ddb2cf9814e871615 Mon Sep 17 00:00:00 2001 From: Unnamed Date: Sat, 20 Apr 2019 13:55:48 +0000 Subject: [PATCH] navparser.cpp: avoid unnecessary std::string construction Use %s to print string directly instead of formating, constructing std::string and using it as C string --- src/navparser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/navparser.cpp b/src/navparser.cpp index c0282577..75d78c4c 100644 --- a/src/navparser.cpp +++ b/src/navparser.cpp @@ -375,7 +375,7 @@ void initThread() lvldir.append("/.steam/steam/steamapps/common/Team Fortress 2/tf/"); lvldir.append(lvlname); lvldir.append(".nav"); - logging::Info(format("Pathing: Nav File location: ", lvldir).c_str()); + logging::Info("Pathing: Nav File location: %s", lvldir.c_str()); navfile = std::make_unique(lvldir.c_str());