Remove fmt::format and replace with std::format

This commit is contained in:
Alexander Bock
2024-03-24 20:19:14 +01:00
parent 9878bfc8f7
commit 3ba346a227
246 changed files with 1343 additions and 1300 deletions
+4 -4
View File
@@ -77,11 +77,11 @@ namespace {
* \return the absolute path to the file
*/
std::filesystem::path findHelperExecutable() {
const std::filesystem::path execLocation = absPath(fmt::format(
const std::filesystem::path execLocation = absPath(std::format(
"${{BIN}}/{}", SubprocessPath
));
if (!std::filesystem::is_regular_file(execLocation)) {
LERROR(fmt::format(
LERROR(std::format(
"Could not find web helper executable at location: {}", execLocation
));
}
@@ -154,7 +154,7 @@ void WebBrowserModule::internalInitialize(const ghoul::Dictionary& dictionary) {
_enabled = dictionary.value<bool>("Enabled");
}
LDEBUG(fmt::format("CEF using web helper executable: {}", _webHelperLocation));
LDEBUG(std::format("CEF using web helper executable: {}", _webHelperLocation));
_cefHost = std::make_unique<CefHost>(_webHelperLocation.string());
LDEBUG("Starting CEF... done");
@@ -205,7 +205,7 @@ void WebBrowserModule::removeBrowser(BrowserInstance* browser) {
global::callback::webBrowserPerformanceHotfix = nullptr;
}
LDEBUG(fmt::format("Number of browsers stored: {}", _browsers.size()));
LDEBUG(std::format("Number of browsers stored: {}", _browsers.size()));
}
void WebBrowserModule::attachEventHandler(BrowserInstance* browserInstance) {