build: Fix building on clang
This commit is contained in:
parent
686f8f43c3
commit
cb35f456ed
@ -170,7 +170,6 @@ namespace hex {
|
||||
}
|
||||
|
||||
void Window::loop() {
|
||||
u64 frameCount = 0;
|
||||
while (!glfwWindowShouldClose(m_window)) {
|
||||
m_lastStartFrameTime = glfwGetTime();
|
||||
|
||||
@ -203,7 +202,6 @@ namespace hex {
|
||||
}
|
||||
|
||||
this->fullFrame();
|
||||
frameCount += 1;
|
||||
|
||||
ImHexApi::System::impl::setLastFrameTime(glfwGetTime() - m_lastStartFrameTime);
|
||||
|
||||
|
@ -640,7 +640,7 @@ namespace hex::plugin::builtin {
|
||||
}
|
||||
ImGui::SameLine();
|
||||
if (ImGuiExt::DimmedIconButton(ICON_VS_SAVE_AS, ImGui::GetStyleColorVec4(ImGuiCol_Text))) {
|
||||
fs::openFileBrowser(fs::DialogMode::Save, {}, [this, id, &runtime](const auto &path) {
|
||||
fs::openFileBrowser(fs::DialogMode::Save, {}, [id, &runtime](const auto &path) {
|
||||
wolv::io::File file(path, wolv::io::File::Mode::Create);
|
||||
if (!file.isValid()) {
|
||||
ui::ToastError::open("hex.builtin.popup.error.create"_lang);
|
||||
@ -752,7 +752,7 @@ namespace hex::plugin::builtin {
|
||||
const auto message = [this]{
|
||||
auto message = (*m_lastEvaluationError)->message;
|
||||
auto lines = wolv::util::splitString(message, "\n");
|
||||
|
||||
|
||||
std::ranges::transform(lines, lines.begin(), [](auto line) {
|
||||
if (line.size() >= 128)
|
||||
line = wolv::util::trim(line);
|
||||
|
Loading…
Reference in New Issue
Block a user