From a3c3fb61e08523a563ce3cba86dc50c9c5fc2c5d Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 13 Jul 2016 14:43:37 +0200 Subject: Fixed new diagnostics errors --- examples/imapresource/imapresource.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/imapresource') diff --git a/examples/imapresource/imapresource.cpp b/examples/imapresource/imapresource.cpp index 92f64bf..6f201ff 100644 --- a/examples/imapresource/imapresource.cpp +++ b/examples/imapresource/imapresource.cpp @@ -133,7 +133,7 @@ public: }, [&folderList](const QByteArray &remoteId) -> bool { // folderList.contains(remoteId) - for (const auto folderPath : folderList) { + for (const auto &folderPath : folderList) { if (folderPath.path == remoteId) { return true; } -- cgit v1.2.3