File tree Expand file tree Collapse file tree
Source/Engine/gramambular2 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -577,7 +577,7 @@ void ReadingGrid::Span::removeNodesOfOrLongerThan(size_t length) {
577577 }
578578}
579579
580- ReadingGrid::NodePtr ReadingGrid::Span::nodeOf (size_t length) const {
580+ const ReadingGrid::NodePtr& ReadingGrid::Span::nodeOf (size_t length) const {
581581 assert (length > 0 && length <= kMaximumSpanLength );
582582 return nodes_[length - 1 ];
583583}
Original file line number Diff line number Diff line change @@ -216,7 +216,7 @@ class ReadingGrid {
216216 void clear ();
217217 void add (const NodePtr& node);
218218 void removeNodesOfOrLongerThan (size_t length);
219- [[nodiscard]] NodePtr nodeOf (size_t length) const ;
219+ [[nodiscard]] const NodePtr& nodeOf (size_t length) const ;
220220 [[nodiscard]] size_t maxLength () const { return maxLength_; }
221221
222222 protected:
You can’t perform that action at this time.
0 commit comments