Bläddra i källkod

Merge pull request #1491 from eugeneko/master

Make HashMap::TryGetValue constant.
Lasse Öörni 9 år sedan
förälder
incheckning
bd76c45f40
1 ändrade filer med 1 tillägg och 1 borttagningar
  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;