commit 8ee79dd86d7f8c018316ac85e0ea8a8d9476c5fe
parent f9fdfe6ebe8ff6109969a2c7d175b3ad8bc36ec4
Author: Bharatvaj H <bharatvaj@yahoo.com>
Date: Mon, 5 Aug 2019 02:10:37 +0530
parent f9fdfe6ebe8ff6109969a2c7d175b3ad8bc36ec4
Author: Bharatvaj H <bharatvaj@yahoo.com>
Date: Mon, 5 Aug 2019 02:10:37 +0530
Fix reorder warning
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/Shell.hpp b/Shell.hpp @@ -15,10 +15,11 @@ private: Dot *d; std::map<std::string, Operation *> operations; std::function<void(int)> exitHandler = [](int) {}; - std::string shellIcon; - Dot *client = nullptr; bool isConnected = false; bool isDaemon = false; + std::string shellIcon; + Dot *client = nullptr; + bool endsWith(const std::string &s, const std::string &suffix) { return s.size() >= suffix.size() && @@ -90,7 +91,7 @@ public: ins.erase(ins.begin(), ins.begin() + 1); try { func(*op, ins); - } catch (std::bad_function_call bfc) { + } catch (std::bad_function_call *bfc) { print(fmt::format("{}: operation not found\n", ins[0])); } }
: bharatvaj/forwarder