X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Ftag.cpp;h=af92bbb8b60780cb0827a63e8d0ea3c6795299d6;hp=76adf7d1b53ccd5e681686335132ff6b265f64b7;hb=f14435e58bfa0fa697a06ba9a454bb30cd37d9d8;hpb=56c9bfa0b47583fb9067705a69c3639a17d4a097 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; }