add const where possible

This commit is contained in:
GenevensiS
2025-08-09 13:01:47 +02:00
parent 1e166bbc9a
commit fb1f96d517
3 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -167,7 +167,7 @@ void AddCSVWindow::onOk(wxCommandEvent&) {
/// Perform the import
wxBusyCursor wait;
// Read the file
auto file = std::ifstream(file_path->GetValue().ToStdString());
auto& file = std::ifstream(file_path->GetValue().ToStdString());
if (file.fail()) {
queue_message(MESSAGE_ERROR, _ERROR_("add card csv file not found"));
EndModal(wxID_ABORT);