Skip to content

Commit

Permalink
Make get_name() return a const reference (#1952)
Browse files Browse the repository at this point in the history
  • Loading branch information
TakashiSato authored Dec 18, 2024
1 parent b039baa commit e7d2fcc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class LoanedCommandInterface
}
}

const std::string get_name() const { return command_interface_.get_name(); }
const std::string & get_name() const { return command_interface_.get_name(); }

const std::string & get_interface_name() const { return command_interface_.get_interface_name(); }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class LoanedStateInterface
}
}

const std::string get_name() const { return state_interface_.get_name(); }
const std::string & get_name() const { return state_interface_.get_name(); }

const std::string & get_interface_name() const { return state_interface_.get_interface_name(); }

Expand Down

0 comments on commit e7d2fcc

Please sign in to comment.