Skip to content

Commit f4a8a81

Browse files
committed
Make function const
1 parent 4b43b62 commit f4a8a81

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/libdbc/message.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ struct Message {
3131
void appendSignal(const Signal& signal);
3232
const std::vector<Signal> getSignals() const;
3333
uint32_t id() const;
34-
const std::string& name() {return m_name;}
34+
const std::string& name() const {
35+
return m_name;
36+
}
3537
void addValueDescription(const std::string& signal_name, const std::vector<Signal::SignalValueDescriptions>&);
3638

3739
virtual bool operator==(const Message& rhs) const;

0 commit comments

Comments
 (0)