aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2019-09-09 17:17:44 +0200
committerneodarz <neodarz@neodarz.net>2019-09-09 17:17:44 +0200
commitbc6aeaa834d666221171d302d4f101ce65608898 (patch)
tree9fecfeb46e4189fb4baebf7f1bd1fb1277b36631 /main.cpp
parent5b66830ca806e00f415d6ee83b15e410130de371 (diff)
downloadumosapicpp-bc6aeaa834d666221171d302d4f101ce65608898.tar.xz
umosapicpp-bc6aeaa834d666221171d302d4f101ce65608898.zip
Refactoring some code to be more readable
Diffstat (limited to '')
-rw-r--r--main.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/main.cpp b/main.cpp
index 9cf4127..dd3b794 100644
--- a/main.cpp
+++ b/main.cpp
@@ -12,8 +12,6 @@
std::map<std::string, std::string> config;
-using namespace std;
-
int main(int argc, char *argv[]) {
string config_path = "";
@@ -73,7 +71,7 @@ int main(int argc, char *argv[]) {
umosapi.start(config["swaggerui"]);
*/
- UmosapiService umosapi;
+ UmosapiService::Api umosapi;
umosapi.init();
umosapi.start(std::stoi(config["port"]), thr);