feat: use WordRefList instead of std::foward_list for results

This commit is contained in:
Michael Mandl 2024-03-21 20:16:00 +01:00
parent b53a4edeee
commit a6146415df
Signed by: mandlm
GPG key ID: 4AA25D647AA54CC7
19 changed files with 78 additions and 86 deletions

View file

@ -122,8 +122,7 @@ void MainWindow::createSelectedFinder() {
}
}
void MainWindow::showResults(
const std::forward_list<const std::string *> &results) {
void MainWindow::showResults(const WordRefList &results) {
QStringList ui_results;
for (auto word : results) {
ui_results.append(QString::fromStdString(*word));

View file

@ -36,7 +36,7 @@ private:
void loadWordList(std::filesystem::path path);
void search(const QString &search_term);
void createSelectedFinder();
void showResults(const std::forward_list<const std::string *> &results);
void showResults(const WordRefList &results);
private slots:
void on_searchInput_textChanged(const QString &search_term);