get rid of some warnings

This commit is contained in:
m-aXimilian
2025-06-24 23:30:09 +02:00
committed by Kueffner, Maximilian
parent 14f2c5bda2
commit 390558f332
2 changed files with 6 additions and 9 deletions
+4 -5
View File
@@ -124,10 +124,8 @@ int pixelarium::ui::AppGLFW::Run()
if (ImGui::BeginListBox("ListBox"))
{
pool_.EnumerateResources([](size_t id, const imaging::PixelariumImage& img) -> void
{
ImGui::Selectable(std::format("Image {}", id).c_str());
});
pool_.EnumerateResources([](size_t id, const imaging::PixelariumImage&) -> void
{ ImGui::Selectable(std::format("Image {}", id).c_str()); });
ImGui::EndListBox();
}
@@ -203,11 +201,12 @@ void pixelarium::ui::AppGLFW::MenuBar()
void pixelarium::ui::AppGLFW::LoadImageProt()
{
size_t last_id{};
auto res{pfd::open_file("Load Inputs", pfd::path::home(), {"All Files", "*"}, pfd::opt::multiselect).result()};
for (auto& p : res)
{
this->logger_.Debug(std::format("{}: Creating image {}", __FUNCTION__, p));
image_view_model_->AddImage(std::make_unique<PixelariumImage>(p));
last_id = image_view_model_->AddImage(std::make_unique<PixelariumImage>(p));
}
}