Code refactoring.

This commit is contained in:
Adam Gu
2018-07-06 11:01:23 +08:00
parent 1d64421e33
commit 3b13cc74f7
33 changed files with 199 additions and 191 deletions
@@ -3,7 +3,6 @@
#include <list>
#include <iostream>
#include "boost/lexical_cast.hpp"
#include "boost/thread/thread.hpp"
#include "json/json.h"
#include "webcc/logger.h"
+2 -2
View File
@@ -36,7 +36,7 @@ int main(int argc, char* argv[]) {
WEBCC_LOG_INIT("", webcc::LOG_CONSOLE);
unsigned short port = std::atoi(argv[1]);
std::uint16_t port = static_cast<std::uint16_t>(std::atoi(argv[1]));
int sleep_seconds = 0;
if (argc >= 3) {
@@ -56,7 +56,7 @@ int main(int argc, char* argv[]) {
server.Run();
} catch (std::exception& e) {
} catch (const std::exception& e) {
std::cerr << "Exception: " << e.what() << std::endl;
return 1;
}