Skip to content

Commit a9ff893

Browse files
committed
made iterator const
1 parent 96af963 commit a9ff893

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

XMapLib/MapFunctions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace sds::Utilities::MapFunctions
1010
template<class T, class H>
1111
bool IsInMap(const T keyValue, const std::map<T, H>& curMap, H& retVal)
1212
{
13-
auto it = curMap.find(keyValue);
13+
const auto it = curMap.find(keyValue);
1414
if(it != curMap.end())
1515
{
1616
retVal = it->second;

0 commit comments

Comments
 (0)