aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2016-09-21 17:18:13 -0500
committerCharles Kerr <charles.kerr@canonical.com>2016-09-21 17:18:13 -0500
commit996f5b96f12e77e922114734ed8524ce7d5f62bc (patch)
tree0a55fe920f903117a181f99a194ee3bb9b330ffd /src
parent9ed013fe0783b155c7a5864074ab46b6b505ea50 (diff)
downloadayatana-indicator-display-996f5b96f12e77e922114734ed8524ce7d5f62bc.tar.gz
ayatana-indicator-display-996f5b96f12e77e922114734ed8524ce7d5f62bc.tar.bz2
ayatana-indicator-display-996f5b96f12e77e922114734ed8524ce7d5f62bc.zip
in PKIdleData, take the std::string argument as a const& to make cppcheck happy on yakkety
Diffstat (limited to 'src')
-rw-r--r--src/adbd-client.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/adbd-client.cpp b/src/adbd-client.cpp
index 400c7c9..e436a43 100644
--- a/src/adbd-client.cpp
+++ b/src/adbd-client.cpp
@@ -66,7 +66,7 @@ private:
GCancellable* cancellable = nullptr;
const std::string public_key;
- PKIdleData(Impl* self_, GCancellable* cancellable_, std::string public_key_):
+ PKIdleData(Impl* self_, GCancellable* cancellable_, const std::string& public_key_):
self(self_),
cancellable(G_CANCELLABLE(g_object_ref(cancellable_))),
public_key(public_key_) {}