Explorar o código

Merge pull request #1491 from eugeneko/master

Make HashMap::TryGetValue constant.
Lasse Öörni %!s(int64=9) %!d(string=hai) anos
pai
achega
bd76c45f40
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Source/Urho3D/Container/HashMap.h

+ 1 - 1
Source/Urho3D/Container/HashMap.h

@@ -555,7 +555,7 @@ public:
     }
 
     /// Try to copy value to output. Return true if was found.
-    bool TryGetValue(const T& key, U& out)
+    bool TryGetValue(const T& key, U& out) const
     {
         if (!ptrs_)
             return false;