core: port filterpreset.cpp to std::string

Less memory management hassle.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2024-02-29 13:39:17 +01:00 committed by Michael Keller
parent 2e1d852e36
commit 119fe908c7
11 changed files with 44 additions and 57 deletions

View file

@ -32,7 +32,7 @@ QVariant FilterPresetModel::data(const QModelIndex &index, int role) const
switch (role) {
case Qt::DisplayRole:
if (index.column() == NAME)
return filter_preset_name_qstring(index.row());
return QString(filter_preset_name(index.row()).c_str());
break;
case Qt::DecorationRole:
if (index.column() == REMOVE)