summaryrefslogtreecommitdiff
path: root/src/repoList.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2020-08-22 15:26:11 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2020-08-22 15:26:11 +0100
commitf759884235b4594c4f960ea0c587697eef717665 (patch)
tree92f3b95e99fac6688a6d9cec88b6553cb77f0c60 /src/repoList.cpp
parentUpdate to new NetFS interface (diff)
downloadnetfs-gitfs-f759884235b4594c4f960ea0c587697eef717665.tar.bz2
netfs-gitfs-f759884235b4594c4f960ea0c587697eef717665.tar.xz
netfs-gitfs-f759884235b4594c4f960ea0c587697eef717665.zip
Clang-format
Diffstat (limited to 'src/repoList.cpp')
-rw-r--r--src/repoList.cpp20
1 files changed, 7 insertions, 13 deletions
diff --git a/src/repoList.cpp b/src/repoList.cpp
index 4eb76af..e3dbb0c 100644
--- a/src/repoList.cpp
+++ b/src/repoList.cpp
@@ -1,28 +1,24 @@
-#include <Ice/ObjectAdapter.h>
-#include <Ice/Properties.h>
#include "repoList.h"
#include "repo.h"
+#include <Ice/ObjectAdapter.h>
+#include <Ice/Properties.h>
#include <compileTimeFormatter.h>
-GitFS::RepoList::RepoList(Ice::PropertiesPtr && p) :
- properties(std::move(p))
-{
-}
+GitFS::RepoList::RepoList(Ice::PropertiesPtr && p) : properties(std::move(p)) { }
AdHocFormatter(RepoPropertyName, "GitFS.%?.%?");
NetFS::VolumePrxPtr
-GitFS::RepoList::connect(const ::std::string volume, const ::std::string auth,
- const ::Ice::Current & ice)
+GitFS::RepoList::connect(const ::std::string volume, const ::std::string auth, const ::Ice::Current & ice)
{
if (volume.empty()) {
throw NetFS::ConfigError();
}
const auto propReader = std::bind(&Ice::Properties::getProperty, properties,
- std::bind((std::string(*)(const std::string_view &, const std::string_view &))
- (&RepoPropertyName::get), volume, std::placeholders::_1));
+ std::bind((std::string(*)(const std::string_view &, const std::string_view &))(&RepoPropertyName::get),
+ volume, std::placeholders::_1));
if (propReader("gitdir").empty()) {
throw NetFS::ConfigError();
@@ -30,7 +26,5 @@ GitFS::RepoList::connect(const ::std::string volume, const ::std::string auth,
if (propReader("authkey") != auth) {
throw NetFS::AuthError();
}
- return Ice::uncheckedCast<NetFS::VolumePrx>(
- ice.adapter->addWithUUID(std::make_shared<Repo>(propReader)));
+ return Ice::uncheckedCast<NetFS::VolumePrx>(ice.adapter->addWithUUID(std::make_shared<Repo>(propReader)));
}
-