Fix lambda capture warnings
authorIgor Kulaychuk <i.kulaychuk@samsung.com>
Mon, 4 Jun 2018 20:15:27 +0000 (23:15 +0300)
committerIgor Kulaychuk <i.kulaychuk@samsung.com>
Mon, 4 Jun 2018 20:15:27 +0000 (23:15 +0300)
src/debug/netcoredbg/miprotocol.cpp

index fa871eb..b8d9ebc 100644 (file)
@@ -761,7 +761,7 @@ HRESULT MIProtocol::HandleCommand(std::string command,
             output = "^running";
         return Status;
     }},
-    { "environment-cd", [this](const std::vector<std::string> &args, std::string &output) -> HRESULT {
+    { "environment-cd", [](const std::vector<std::string> &args, std::string &output) -> HRESULT {
         if (args.empty())
             return E_INVALIDARG;
         return SetWorkDir(args.at(0)) ? S_OK : E_FAIL;
@@ -782,7 +782,7 @@ HRESULT MIProtocol::HandleCommand(std::string command,
         }
         return S_OK;
     }},
-    { "interpreter-exec", [this](const std::vector<std::string> &args, std::string &output) -> HRESULT {
+    { "interpreter-exec", [](const std::vector<std::string> &args, std::string &output) -> HRESULT {
         return S_OK;
     }},
     { "break-exception-insert", [this](const std::vector<std::string> &args, std::string &output) -> HRESULT {