From f759884235b4594c4f960ea0c587697eef717665 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 22 Aug 2020 15:26:11 +0100 Subject: Clang-format --- src/repoList.cpp | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) (limited to 'src/repoList.cpp') 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 -#include #include "repoList.h" #include "repo.h" +#include +#include #include -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( - ice.adapter->addWithUUID(std::make_shared(propReader))); + return Ice::uncheckedCast(ice.adapter->addWithUUID(std::make_shared(propReader))); } - -- cgit v1.2.3