Mercurial > dedupe
changeset 23:5d14d8c2c299
Fix to support other stringtypes than QString.
| author | Tom Fredrik Blenning Klaussen <bfg@blenning.no> |
|---|---|
| date | Wed, 05 Sep 2012 21:56:06 +0200 |
| parents | d62f708ad88b |
| children | d0502678429c |
| files | DBCache.hpp |
| diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/DBCache.hpp Wed Sep 05 21:55:21 2012 +0200 +++ b/DBCache.hpp Wed Sep 05 21:56:06 2012 +0200 @@ -160,8 +160,8 @@ static void bindValues(QSqlQuery& query, const QList<UniqueString>& values, const QString& prefix = QString()) { QVariantList list; - foreach(const QString& value, values) { - list << value; + foreach(const UniqueString& value, values) { + list << static_cast<const QString>(value); } bindValues(query, list, prefix); }
