aboutsummaryrefslogtreecommitdiff
path: root/src/Database.cpp
diff options
context:
space:
mode:
authordec05eba <0xdec05eba@gmail.com>2018-05-01 11:59:15 +0200
committerdec05eba <0xdec05eba@gmail.com>2018-05-01 11:59:19 +0200
commit3b7289b006c4c78ecbdf21ebf4c68441319d3dbd (patch)
treec2f1f321af479e7ca3fad69dc6afc3335a175eb6 /src/Database.cpp
parent670e3eed2703dcee1dee0508e45d8454cae78544 (diff)
Remove unnecessary dependency 'fmt'
Diffstat (limited to 'src/Database.cpp')
-rw-r--r--src/Database.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/Database.cpp b/src/Database.cpp
index aa852f6..8cca298 100644
--- a/src/Database.cpp
+++ b/src/Database.cpp
@@ -8,7 +8,6 @@
#include "../include/odhtdb/Log.hpp"
#include <boost/uuid/uuid_generators.hpp>
#include <opendht.h>
-#include <fmt/format.h>
#include <sodium/randombytes.h>
#include <thread>
#include <chrono>
@@ -105,8 +104,7 @@ namespace odhtdb
/*.proxy_server = */"",
/*.push_node_id = */""
});
- fmt::MemoryWriter portStr;
- portStr << port;
+ auto portStr = to_string(port);
node.bootstrap(bootstrapNodeAddr, portStr.c_str());
// TODO: Make this work for multiple threads initializing database at same time
@@ -388,7 +386,7 @@ namespace odhtdb
return nullptr;
}
- void Database::addUser(const DatabaseNode &nodeInfo, LocalUser *userToPerformActionWith, const string &userToAddName, const Signature::PublicKey &userToAddPublicKey, Group *groupToAddUserTo)
+ void Database::addUser(const DatabaseNode &nodeInfo, const LocalUser *userToPerformActionWith, const string &userToAddName, const Signature::PublicKey &userToAddPublicKey, Group *groupToAddUserTo)
{
auto groupWithAddUserRights = getGroupWithRightsToAddUserToGroup(userToPerformActionWith->getGroups(), groupToAddUserTo);
if(!groupWithAddUserRights)