Skip to content

Commit bd1360c

Browse files
committed
IEntity: Return ID by reference
1 parent 440a547 commit bd1360c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scratch/ientity.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class LIBSCRATCHCPP_EXPORT IEntity
1515
virtual ~IEntity() { }
1616

1717
/*! Returns the ID. */
18-
virtual std::string id() const final { return m_id; };
18+
virtual const std::string &id() const final { return m_id; };
1919
/*! Sets the ID. */
2020
virtual void setId(const std::string &newId) final { m_id = newId; };
2121

0 commit comments

Comments
 (0)