mirror of
https://gitlab.com/samplehive/sample-hive.git
synced 2026-09-04 05:16:20 +02:00
Use const& for loop
This commit is contained in:
+1
-1
@@ -2533,7 +2533,7 @@ void MainFrame::OnDoSearch(wxCommandEvent& event)
|
||||
|
||||
std::cout << search << std::endl;
|
||||
|
||||
for (auto data : dataset)
|
||||
for (const auto& data : dataset)
|
||||
{
|
||||
m_Library->AppendItem(data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user