summaryrefslogtreecommitdiffhomepage
path: root/api
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-02-28 19:56:47 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-02-28 19:56:47 +0100
commited2e166f95c1a8b7fde97383520dbd5866b14dab (patch)
treed24668b6cce585798231009b4969790cc121b9ad /api
parent77c1249e3b09a7f721c749bdb5d7f3b38950e52f (diff)
api: don't bother with qlatin1string
Diffstat (limited to 'api')
-rw-r--r--api/plugin-support.hpp12
1 files 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<std::shared_ptr<dylib>> 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)