From 996f5b96f12e77e922114734ed8524ce7d5f62bc Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Wed, 21 Sep 2016 17:18:13 -0500 Subject: in PKIdleData, take the std::string argument as a const& to make cppcheck happy on yakkety --- src/adbd-client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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_) {} -- cgit v1.2.3