1
0
mirror of synced 2024-11-12 02:00:52 +01:00

build: Fix building on clang

This commit is contained in:
WerWolv 2023-12-27 17:42:44 +01:00
parent 686f8f43c3
commit cb35f456ed
2 changed files with 2 additions and 4 deletions

View File

@ -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);

View File

@ -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);