X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Ftag.cpp;h=af92bbb8b60780cb0827a63e8d0ea3c6795299d6;hb=b07e3b2103c53e3cd6a4674eef481178ec64f2c7;hp=76adf7d1b53ccd5e681686335132ff6b265f64b7;hpb=56c9bfa0b47583fb9067705a69c3639a17d4a097;p=libs%2Fgl.git diff --git a/source/tag.cpp b/source/tag.cpp index 76adf7d1..af92bbb8 100644 --- a/source/tag.cpp +++ b/source/tag.cpp @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of libmspgl -Copyright © 2007, 2010 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #include "tag.h" namespace { @@ -12,9 +5,9 @@ namespace { template inline unsigned hash(T begin, T end) { - unsigned result=0; + unsigned result = 0; for(T i=begin; (i!=end && *i); ++i) - result=((result>>29)|(result<<5))^static_cast(*i); + result = ((result>>29)|(result<<5))^static_cast(*i); return result; }