forked from qt-creator/qt-creator
Utils etc: More use of Key and Store
Change-Id: Idd2d70617f775d783aee93a2fe82544ad335a739 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -3,7 +3,17 @@
|
||||
|
||||
#include "store.h"
|
||||
|
||||
#include "algorithm.h"
|
||||
|
||||
namespace Utils {
|
||||
|
||||
KeyList keyListFromStringList(const QStringList &list)
|
||||
{
|
||||
#ifdef QTC_USE_STORE
|
||||
return transform(list, [](const QString &str) { return str.toUtf8(); });
|
||||
#else
|
||||
return list;
|
||||
#endif
|
||||
}
|
||||
|
||||
} // Utils
|
||||
|
||||
Reference in New Issue
Block a user