summaryrefslogtreecommitdiff
path: root/src/envshell.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/envshell.cpp')
-rw-r--r--src/envshell.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/envshell.cpp b/src/envshell.cpp
index 3d0f774e..94c089b3 100644
--- a/src/envshell.cpp
+++ b/src/envshell.cpp
@@ -1,8 +1,12 @@
-#include "envshell.h"
+
+#include <format>
+
#include <log.h>
#include <utility.h>
#include <windowsx.h>
+#include "envshell.h"
+
namespace env
{
@@ -16,7 +20,7 @@ class MenuFailed : public std::runtime_error
public:
MenuFailed(HRESULT r, const std::string& what)
: runtime_error(
- fmt::format("{}, {}", what,
+ std::format("{}, {}", what,
QString::fromStdWString(formatSystemMessage(r)).toStdString()))
{}
};
@@ -478,7 +482,7 @@ void ShellMenu::invoke(const QPoint& p, int cmd)
const auto r = m_cm->InvokeCommand((CMINVOKECOMMANDINFO*)&info);
if (FAILED(r)) {
- throw MenuFailed(r, fmt::format("InvokeCommand failed, verb={}", cmd));
+ throw MenuFailed(r, std::format("InvokeCommand failed, verb={}", cmd));
}
}
@@ -568,7 +572,7 @@ void ShellMenuCollection::exec(const QPoint& pos)
}
if (!m_active) {
- log::debug("SMC: command {} selected without active submenu");
+ log::debug("SMC: command {} selected without active submenu", cmd);
return;
}