Browse Source

Fixed ResourceCache error messages.

Lasse Öörni 14 years ago
parent
commit
3f1f71dd06
2 changed files with 3 additions and 3 deletions
  1. 1 1
      Engine/Container/HashMap.h
  2. 2 2
      Engine/Resource/ResourceCache.cpp

+ 1 - 1
Engine/Container/HashMap.h

@@ -219,7 +219,7 @@ public:
             InsertNode(it->first_, it->second_);
             InsertNode(it->first_, it->second_);
     }
     }
     
     
-    /// Insert a key by iterator. Return iterator to the value
+    /// Insert a pair by iterator. Return iterator to the value
     Iterator Insert(const ConstIterator& it)
     Iterator Insert(const ConstIterator& it)
     {
     {
         return Iterator(InsertNode(it->first_, it->second_));
         return Iterator(InsertNode(it->first_, it->second_));

+ 2 - 2
Engine/Resource/ResourceCache.cpp

@@ -359,7 +359,7 @@ Resource* ResourceCache::GetResource(ShortStringHash type, StringHash nameHash)
     const String& name = GetResourceName(nameHash);
     const String& name = GetResourceName(nameHash);
     if (name.Empty())
     if (name.Empty())
     {
     {
-        LOGERROR("Could not load unknown resource " + nameHash);
+        LOGERROR("Could not load unknown resource " + String(nameHash));
         return 0;
         return 0;
     }
     }
     
     
@@ -367,7 +367,7 @@ Resource* ResourceCache::GetResource(ShortStringHash type, StringHash nameHash)
     resource = DynamicCast<Resource>(context_->CreateObject(type));
     resource = DynamicCast<Resource>(context_->CreateObject(type));
     if (!resource)
     if (!resource)
     {
     {
-        LOGERROR("Could not load unknown resource type " + type);
+        LOGERROR("Could not load unknown resource type " + String(type));
         return 0;
         return 0;
     }
     }