Commit 6384bd2d780913477e006b60521df3aad707370c

Authored by Matti Virkkunen
1 parent 54ea1473

Get rid of C++ future feature warnings

Showing 1 changed file with 4 additions and 3 deletions
purpleline.cpp
... ... @@ -958,10 +958,11 @@ PurpleCmdRet PurpleLine::cmd_open(PurpleConversation *conv,
958 958  
959 959 std::string url = std::string(LINE_OS_URL) + "os/m/"+ att->id;
960 960  
  961 + PurpleConversationType ctype = purple_conversation_get_type(conv);
  962 + std::string cname = std::string(purple_conversation_get_name(conv));
  963 +
961 964 http.request(url, HTTPFlag::auth | HTTPFlag::large,
962   - [this, path, token,
963   - ctype=purple_conversation_get_type(conv),
964   - cname=std::string(purple_conversation_get_name(conv))]
  965 + [this, path, token, ctype, cname]
965 966 (int status, const guchar *data, gsize len)
966 967 {
967 968 if (status == 200 && data && len > 0) {
... ...