]> git.tdb.fi Git - libs/gui.git/commitdiff
Change call to hash function
authorMikko Rasa <tdb@tdb.fi>
Wed, 17 Nov 2021 12:39:02 +0000 (14:39 +0200)
committerMikko Rasa <tdb@tdb.fi>
Wed, 17 Nov 2021 12:39:02 +0000 (14:39 +0200)
source/input/hub.cpp

index 13c88d63b18b32cb064c6feb5ef3b94ab4f43ab9..b28882f6aad8733944f9002d4abfe6c308c1088f 100644 (file)
@@ -17,7 +17,7 @@ Hub::Hub()
 
 void Hub::attach(Device &dev)
 {
-       unsigned tag = hash32(dev.get_name(), 20);
+       unsigned tag = hash<20>(dev.get_name());
        while(devices.count(tag))
                ++tag;