Commit 5da47c26 authored by Andrius Štikonas's avatar Andrius Štikonas
Browse files

Replace array with unordered set for better performance.

parent 551654de
......@@ -8,7 +8,9 @@
#ifndef KPMCORE_EXTERNALCOMMAND_WHITELIST_H
#define KPMCORE_EXTERNALCOMMAND_WHITELIST_H
QString allowedCommands[] = {
#include <unordered_set>
const std::unordered_set<QString> allowedCommands {
// TODO no root needed
QStringLiteral("lsblk"),
QStringLiteral("udevadm"),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment