From ed2e166f95c1a8b7fde97383520dbd5866b14dab Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 28 Feb 2019 19:56:47 +0100 Subject: api: don't bother with qlatin1string --- api/plugin-support.hpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/api/plugin-support.hpp b/api/plugin-support.hpp index 02032b54..1ee8e093 100644 --- a/api/plugin-support.hpp +++ b/api/plugin-support.hpp @@ -85,16 +85,14 @@ struct dylib final QDir module_directory(library_path); QList> ret; - using str = QLatin1String; - const struct filter_ { Type type{Invalid}; - QLatin1String glob; + QString glob; } filters[] = { - { Filter, str(OPENTRACK_LIBRARY_PREFIX "opentrack-filter-*." OPENTRACK_LIBRARY_EXTENSION), }, - { Tracker, str(OPENTRACK_LIBRARY_PREFIX "opentrack-tracker-*." OPENTRACK_LIBRARY_EXTENSION), }, - { Protocol, str(OPENTRACK_LIBRARY_PREFIX "opentrack-proto-*." OPENTRACK_LIBRARY_EXTENSION), }, - { Extension, str(OPENTRACK_LIBRARY_PREFIX "opentrack-ext-*." OPENTRACK_LIBRARY_EXTENSION), }, + { Filter, QStringLiteral(OPENTRACK_LIBRARY_PREFIX "opentrack-filter-*." OPENTRACK_LIBRARY_EXTENSION), }, + { Tracker, QStringLiteral(OPENTRACK_LIBRARY_PREFIX "opentrack-tracker-*." OPENTRACK_LIBRARY_EXTENSION), }, + { Protocol, QStringLiteral(OPENTRACK_LIBRARY_PREFIX "opentrack-proto-*." OPENTRACK_LIBRARY_EXTENSION), }, + { Extension, QStringLiteral(OPENTRACK_LIBRARY_PREFIX "opentrack-ext-*." OPENTRACK_LIBRARY_EXTENSION), }, }; for (const filter_& filter : filters) -- cgit v1.2.3