diff --git a/main/gui/source/window/window.cpp b/main/gui/source/window/window.cpp index 092e04da8..da534a90a 100644 --- a/main/gui/source/window/window.cpp +++ b/main/gui/source/window/window.cpp @@ -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); diff --git a/plugins/builtin/source/content/views/view_pattern_editor.cpp b/plugins/builtin/source/content/views/view_pattern_editor.cpp index dccacb181..7eec4ebc9 100644 --- a/plugins/builtin/source/content/views/view_pattern_editor.cpp +++ b/plugins/builtin/source/content/views/view_pattern_editor.cpp @@ -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);