summaryrefslogtreecommitdiff
path: root/libtmdb
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-01-03 21:44:01 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2015-01-04 15:52:04 +0000
commit009e079419b243b0cd728d3ed3c707ed1862564a (patch)
treed1c3cd6b57351be2727dca2b12e76115f1c64bdc /libtmdb
parentA single ycm config that gets its args from b2 (diff)
downloadp2pvr-009e079419b243b0cd728d3ed3c707ed1862564a.tar.bz2
p2pvr-009e079419b243b0cd728d3ed3c707ed1862564a.tar.xz
p2pvr-009e079419b243b0cd728d3ed3c707ed1862564a.zip
Use native for instead BOOST_FOREACH
Diffstat (limited to 'libtmdb')
-rw-r--r--libtmdb/httpClient.cpp7
1 files 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 <boost/foreach.hpp>
#include <boost/lexical_cast.hpp>
#include <curl/curl.h>
#include <tmdb-api.h>
@@ -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);
}
}