We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d97721f commit 9a83fd4Copy full SHA for 9a83fd4
src/scratch/list.cpp
@@ -25,7 +25,7 @@ void List::setName(const std::string &name)
25
}
26
27
/*! Returns the index of the given item. */
28
-size_t List::indexOf(const Value &value) const
+long List::indexOf(const Value &value) const
29
{
30
auto it = std::find(begin(), end(), value);
31
src/scratch/list.h
@@ -22,7 +22,7 @@ class LIBSCRATCHCPP_EXPORT List
22
std::string name();
23
void setName(const std::string &name);
24
- size_t indexOf(const Value &value) const;
+ long indexOf(const Value &value) const;
bool contains(const Value &value) const;
/*! Removes the item at index. */
0 commit comments