From 0d97553a5e1d91edfc325f1d9f5cf8c8bdd6a496 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 16 Aug 2025 16:29:06 +0100 Subject: Fix-up all the clang-tidy warnings --- src/repoList.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/repoList.cpp') diff --git a/src/repoList.cpp b/src/repoList.cpp index 7a69b78..8c5b8a9 100644 --- a/src/repoList.cpp +++ b/src/repoList.cpp @@ -7,11 +7,12 @@ #include #include #include +#include #include #include #include -GitFS::RepoList::RepoList(Ice::PropertiesPtr && p) : properties(std::move(p)) { } +GitFS::RepoList::RepoList(Ice::PropertiesPtr props) : properties(std::move(props)) { } AdHocFormatter(RepoPropertyName, "GitFS.%?.%?"); @@ -38,6 +39,8 @@ GitFS::RepoList::connect(const ::std::string volume, const ::std::string auth, c NetFS::SettingsPtr GitFS::RepoList::getSettings(const ::Ice::Current & ice) { + constexpr int DEFAULT_MAX_MESSAGE_SIZE = 1024; const auto props = ice.adapter->getCommunicator()->getProperties(); - return std::make_shared(props->getPropertyAsIntWithDefault("Ice.MessageSizeMax", 1024)); + return std::make_shared( + props->getPropertyAsIntWithDefault("Ice.MessageSizeMax", DEFAULT_MAX_MESSAGE_SIZE)); } -- cgit v1.2.3