summaryrefslogtreecommitdiff
path: root/src/protocols/GlobalShortcuts.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/protocols/GlobalShortcuts.cpp')
-rw-r--r--src/protocols/GlobalShortcuts.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/protocols/GlobalShortcuts.cpp b/src/protocols/GlobalShortcuts.cpp
index 92bfbae4..b02126ef 100644
--- a/src/protocols/GlobalShortcuts.cpp
+++ b/src/protocols/GlobalShortcuts.cpp
@@ -54,8 +54,8 @@ void CGlobalShortcutsProtocol::destroyResource(CShortcutClient* client) {
}
bool CGlobalShortcutsProtocol::isTaken(std::string appid, std::string trigger) {
- for (auto& c : m_vClients) {
- for (auto& sh : c->shortcuts) {
+ for (auto const& c : m_vClients) {
+ for (auto const& sh : c->shortcuts) {
if (sh->appid == appid && sh->id == trigger) {
return true;
}
@@ -66,8 +66,8 @@ bool CGlobalShortcutsProtocol::isTaken(std::string appid, std::string trigger) {
}
void CGlobalShortcutsProtocol::sendGlobalShortcutEvent(std::string appid, std::string trigger, bool pressed) {
- for (auto& c : m_vClients) {
- for (auto& sh : c->shortcuts) {
+ for (auto const& c : m_vClients) {
+ for (auto const& sh : c->shortcuts) {
if (sh->appid == appid && sh->id == trigger) {
timespec now;
clock_gettime(CLOCK_MONOTONIC, &now);
@@ -84,8 +84,8 @@ void CGlobalShortcutsProtocol::sendGlobalShortcutEvent(std::string appid, std::s
std::vector<SShortcut> CGlobalShortcutsProtocol::getAllShortcuts() {
std::vector<SShortcut> copy;
- for (auto& c : m_vClients) {
- for (auto& sh : c->shortcuts) {
+ for (auto const& c : m_vClients) {
+ for (auto const& sh : c->shortcuts) {
copy.push_back(*sh);
}
}