Use const& for loop

This commit is contained in:
Mathias Buhr 2021-07-24 11:57:18 +02:00
parent e00d753302
commit 7eccf406dc
1 changed files with 1 additions and 1 deletions

View File

@ -2533,7 +2533,7 @@ void MainFrame::OnDoSearch(wxCommandEvent& event)
std::cout << search << std::endl; std::cout << search << std::endl;
for (auto data : dataset) for (const auto& data : dataset)
{ {
m_Library->AppendItem(data); m_Library->AppendItem(data);
} }