Changeset - r19360:2ad849e759c9
[Not reviewed]
master
0 1 0
frosch - 12 years ago 2012-05-25 20:52:11
frosch@openttd.org
(svn r24275) -Codechange: Make SmallVector::FindIndex() const.
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/core/smallvec_type.hpp
Show inline comments
 
@@ -148,10 +148,10 @@ public:
 
	 * @param item Item to search for
 
	 * @return The position of the item, or -1 when not present
 
	 */
 
	inline int FindIndex(const T &item)
 
	inline int FindIndex(const T &item) const
 
	{
 
		int index = 0;
 
		T *pos = this->Begin();
 
		const T *pos = this->Begin();
 
		const T *end = this->End();
 
		while (pos != end && *pos != item) {
 
			pos++;
0 comments (0 inline, 0 general)