X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Ftag.cpp;h=44c7c8f86396837ebb73c9db0ca592a71dfbff56;hb=e9a898f315b5d1396f196d785913a283c30940f2;hp=b5f860334e8a3792b7d8f4fe88f47e2dcd9a4e31;hpb=fa2b4c8a93ebad2497cacfdeaa9a2c20be486520;p=libs%2Fgl.git diff --git a/source/core/tag.cpp b/source/core/tag.cpp index b5f86033..44c7c8f8 100644 --- a/source/core/tag.cpp +++ b/source/core/tag.cpp @@ -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::const_iterator i=tag_names.find(*this); + auto i=tag_names.find(*this); if(i!=tag_names.end()) return i->second; #endif