From 009e079419b243b0cd728d3ed3c707ed1862564a Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 3 Jan 2015 21:44:01 +0000 Subject: Use native for instead BOOST_FOREACH --- libtmdb/httpClient.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/libtmdb/httpClient.cpp b/libtmdb/httpClient.cpp index 93fdd76..6217f1a 100644 --- a/libtmdb/httpClient.cpp +++ b/libtmdb/httpClient.cpp @@ -1,5 +1,4 @@ #include "httpClient.h" -#include #include #include #include @@ -29,11 +28,11 @@ namespace TMDb { void HttpClient::appendQueryParameters(std::string & path, const Parameters & parameters) const { - path += "?"; + path += "?"; appendQueryParameters(path, { "apikey", ApiKey }); - BOOST_FOREACH(const auto & nvp, parameters) { + for (const auto & nvp : parameters) { if (nvp.second.value) { - path += "&"; + path += "&"; appendQueryParameters(path, nvp); } } -- cgit v1.2.3