summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Mollekopf <mollekopf@kolabsys.com>2012-07-20 10:06:29 (GMT)
committerChristian Mollekopf <mollekopf@kolabsys.com>2012-07-25 09:04:01 (GMT)
commit8678445bd6cadbd5bfebc8d7de03e83ca1c68234 (patch)
treee96bd8af282fa937d0bef6d4855006f3faec0f69
parentde64c8fd00a9bcc58f64b5875de5bcbe519e5a62 (diff)
downloadlibkolabxml-8678445bd6cadbd5bfebc8d7de03e83ca1c68234.tar.gz
fix build without -fpermissive
(cherry picked from commit 8f8a2f3b9f3d227a60f1a733476b13c60a352e21)
-rw-r--r--src/uriencode.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/uriencode.cpp b/src/uriencode.cpp
index 363f98e..3c30331 100644
--- a/src/uriencode.cpp
+++ b/src/uriencode.cpp
@@ -21,7 +21,7 @@
std::string uriEncode(const std::string &s)
{
CURL *easyhandle = curl_easy_init();
- const char *result = curl_easy_escape(easyhandle, s.c_str(), s.length());
+ char *result = curl_easy_escape(easyhandle, s.c_str(), static_cast<int>(s.length()));
curl_easy_cleanup(easyhandle);
if (!result) {
return std::string();
@@ -35,7 +35,7 @@ std::string uriDecode(const std::string &s)
{
CURL *easyhandle = curl_easy_init();
int length = 0;
- const char *result = curl_easy_unescape(easyhandle, s.c_str(), s.length(), &length);
+ char *result = curl_easy_unescape(easyhandle, s.c_str(), static_cast<int>(s.length()), &length);
curl_easy_cleanup(easyhandle);
if (!length) {
return std::string();