From 6832ded200f7a563b9e2cf81148fd26fdb064fdd Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Tue, 8 Oct 2024 09:16:13 +0200 Subject: Name classes, structs and enums using CamelCase. --- src/buildtool/file_system/git_repo.hpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/buildtool/file_system/git_repo.hpp') diff --git a/src/buildtool/file_system/git_repo.hpp b/src/buildtool/file_system/git_repo.hpp index 0127c604..df100b35 100644 --- a/src/buildtool/file_system/git_repo.hpp +++ b/src/buildtool/file_system/git_repo.hpp @@ -44,12 +44,11 @@ class GitRepo { public: // Stores the data for defining a single Git tree entry, which consists of // a name (flat basename) and an object type (file/executable/tree). - struct tree_entry_t { - tree_entry_t(std::string n, ObjectType t) - : name{std::move(n)}, type{t} {} + struct TreeEntry { + TreeEntry(std::string n, ObjectType t) : name{std::move(n)}, type{t} {} std::string name; ObjectType type; - [[nodiscard]] auto operator==(tree_entry_t const& other) const noexcept + [[nodiscard]] auto operator==(TreeEntry const& other) const noexcept -> bool { return name == other.name and type == other.type; } @@ -59,7 +58,7 @@ class GitRepo { // Note that sharding by id is used as this format enables a more efficient // internal implementation for creating trees. using tree_entries_t = - std::unordered_map>; + std::unordered_map>; // Stores the info of an object read by its path. struct TreeEntryInfo { -- cgit v1.2.3