Skip to content

Commit

Permalink
missed on last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
lroberts36 committed Oct 18, 2024
1 parent 40a0a02 commit 00ce27b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/interface/variable.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
4 changes: 1 addition & 3 deletions src/utils/unique_id.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<T, Uid_t> uids_;
Expand Down

0 comments on commit 00ce27b

Please sign in to comment.