summaryrefslogtreecommitdiff
path: root/louloulibs/utils
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2016-11-01 19:43:56 +0100
committerlouiz’ <louiz@louiz.org>2016-11-01 19:43:56 +0100
commitf50f50653dc064575e4730c31b5615301f00e057 (patch)
treec1daa70bba5c430d0fe6ffaa5f17b3b0a0938b0f /louloulibs/utils
parente1934a0b5fb1589bcdd85b86b315d652488d0577 (diff)
downloadbiboumi-f50f50653dc064575e4730c31b5615301f00e057.tar.gz
biboumi-f50f50653dc064575e4730c31b5615301f00e057.tar.bz2
biboumi-f50f50653dc064575e4730c31b5615301f00e057.tar.xz
biboumi-f50f50653dc064575e4730c31b5615301f00e057.zip
Refactor load_certs()
Diffstat (limited to 'louloulibs/utils')
-rw-r--r--louloulibs/utils/encoding.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/louloulibs/utils/encoding.cpp b/louloulibs/utils/encoding.cpp
index cb953c0..60f2212 100644
--- a/louloulibs/utils/encoding.cpp
+++ b/louloulibs/utils/encoding.cpp
@@ -151,7 +151,7 @@ namespace utils
throw std::runtime_error("Cannot convert into UTF-8");
// Make sure cd is always closed when we leave this function
- const auto sg = utils::make_scope_guard([&](auto&&){ iconv_close(cd); });
+ const auto sg = utils::make_scope_guard([&cd](auto&&){ iconv_close(cd); });
size_t inbytesleft = str.size();
@@ -168,7 +168,7 @@ namespace utils
char* outbuf_ptr = outbuf;
// Make sure outbuf is always deleted when we leave this function
- const auto sg2 = utils::make_scope_guard([&](auto&&){ delete[] outbuf; });
+ const auto sg2 = utils::make_scope_guard([outbuf](auto&&){ delete[] outbuf; });
bool done = false;
while (done == false)