We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d0e20f commit bf13e7fCopy full SHA for bf13e7f
src/scratch/list.cpp
@@ -31,7 +31,7 @@ std::deque<Value> List::items() const
31
}
32
33
/*! Returns the item at index. */
34
-Value List::at(int index) const
+const Value &List::at(int index) const
35
{
36
return m_items[index];
37
src/scratch/list.h
@@ -21,7 +21,7 @@ class LIBSCRATCHCPP_EXPORT List : public IEntity
21
void setName(const std::string &name);
22
23
std::deque<Value> items() const;
24
- Value at(int index) const;
+ const Value &at(int index) const;
25
int indexOf(const Value &value) const;
26
int size() const;
27
int length() const;
0 commit comments