]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/tag.cpp
Use C++11 features with containers
[libs/gl.git] / source / core / tag.cpp
index b5f860334e8a3792b7d8f4fe88f47e2dcd9a4e31..44c7c8f86396837ebb73c9db0ca592a71dfbff56 100644 (file)
@@ -26,7 +26,7 @@ Tag::Tag(const char *s):
 #endif
 }
 
-Tag::Tag(const std::string &s):
+Tag::Tag(const string &s):
        id(s.empty() ? 0 : hash32(s))
 {
 #ifdef DEBUG
@@ -38,7 +38,7 @@ Tag::Tag(const std::string &s):
 string Tag::str() const
 {
 #ifdef DEBUG
-       map<Tag, string>::const_iterator i=tag_names.find(*this);
+       auto i=tag_names.find(*this);
        if(i!=tag_names.end())
                return i->second;
 #endif