Loading src/exception.cpp +0 −4 Original line number Diff line number Diff line Loading @@ -36,7 +36,6 @@ netplus::NetException::NetException() { }; netplus::NetException::NetException(const NetException &exp){ const std::lock_guard<std::mutex> lock(mlock); msg=exp.msg; curCType = exp.curCType; } Loading @@ -45,17 +44,14 @@ netplus::NetException::~NetException(){ } int netplus::NetException::getErrorType(){ const std::lock_guard<std::mutex> lock(mlock); return curCType; } const char* netplus::NetException::what(){ const std::lock_guard<std::mutex> lock(mlock); return msg.c_str(); } netplus::NetException& netplus::NetException::append(const char *src){ const std::lock_guard<std::mutex> lock(mlock); msg.append(src); return *this; } Loading src/exception.h +0 −1 Original line number Diff line number Diff line Loading @@ -65,7 +65,6 @@ namespace netplus { private: int curCType; std::string msg; std::mutex mlock; }; }; Loading
src/exception.cpp +0 −4 Original line number Diff line number Diff line Loading @@ -36,7 +36,6 @@ netplus::NetException::NetException() { }; netplus::NetException::NetException(const NetException &exp){ const std::lock_guard<std::mutex> lock(mlock); msg=exp.msg; curCType = exp.curCType; } Loading @@ -45,17 +44,14 @@ netplus::NetException::~NetException(){ } int netplus::NetException::getErrorType(){ const std::lock_guard<std::mutex> lock(mlock); return curCType; } const char* netplus::NetException::what(){ const std::lock_guard<std::mutex> lock(mlock); return msg.c_str(); } netplus::NetException& netplus::NetException::append(const char *src){ const std::lock_guard<std::mutex> lock(mlock); msg.append(src); return *this; } Loading
src/exception.h +0 −1 Original line number Diff line number Diff line Loading @@ -65,7 +65,6 @@ namespace netplus { private: int curCType; std::string msg; std::mutex mlock; }; };