We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 440a547 commit bd1360cCopy full SHA for bd1360c
src/scratch/ientity.h
@@ -15,7 +15,7 @@ class LIBSCRATCHCPP_EXPORT IEntity
15
virtual ~IEntity() { }
16
17
/*! Returns the ID. */
18
- virtual std::string id() const final { return m_id; };
+ virtual const std::string &id() const final { return m_id; };
19
/*! Sets the ID. */
20
virtual void setId(const std::string &newId) final { m_id = newId; };
21
0 commit comments