Browse Source

Make HashMap::TryGetValue constant.

Eugene Kozlov 9 years ago
parent
commit
014ef043ef
1 changed files with 1 additions and 1 deletions
  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.
     /// 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_)
         if (!ptrs_)
             return false;
             return false;