]> git.tdb.fi Git - libs/gl.git/blobdiff - source/render/tag.h
Pass Tag by value, not by reference
[libs/gl.git] / source / render / tag.h
index 28b4fa010e8b0f12980df476f7ac8160a2c922fb..938089899277ba3ee196f2ba4279bece666057dd 100644 (file)
@@ -18,8 +18,8 @@ struct Tag
        Tag(const char *);
        Tag(const std::string &s);
 
-       bool operator<(const Tag &t) const { return id<t.id; }
-       bool operator==(const Tag &t) const { return id==t.id; }
+       bool operator<(Tag t) const { return id<t.id; }
+       bool operator==(Tag t) const { return id==t.id; }
 };
 
 } // namespace GL