From 00ce27b06210136cad5d3499e83e304b4d877524 Mon Sep 17 00:00:00 2001 From: Luke Roberts Date: Fri, 18 Oct 2024 14:49:58 -0600 Subject: [PATCH] missed on last commit --- src/interface/variable.hpp | 4 ++-- src/utils/unique_id.hpp | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/interface/variable.hpp b/src/interface/variable.hpp index 825f552b0982..3d262496e3c7 100644 --- a/src/interface/variable.hpp +++ b/src/interface/variable.hpp @@ -123,8 +123,8 @@ class Variable { Uid_t GetUniqueID() const { return uid_; } static Uid_t GetUniqueID(const std::string &var_label) { return get_uid_(var_label); } - static const std::string &GetLabel(Uid_t uid) {return get_uid_(uid);} - + static const std::string &GetLabel(Uid_t uid) { return get_uid_(uid); } + /// return information string std::string info(); diff --git a/src/utils/unique_id.hpp b/src/utils/unique_id.hpp index c82219021ebf..e4bd9099893f 100644 --- a/src/utils/unique_id.hpp +++ b/src/utils/unique_id.hpp @@ -37,9 +37,7 @@ class UniqueIDGenerator { return uid; } - const T &operator()(const Uid_t uid) { - return uids_inverse_.at(uid); - } + const T &operator()(const Uid_t uid) { return uids_inverse_.at(uid); } private: std::unordered_map uids_;