]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix missing return in HardFun functor template
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 5 Nov 2016 09:42:15 +0000 (22:42 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 5 Nov 2016 09:42:15 +0000 (22:42 +1300)
src/base/HardFun.h

index 3221fae3ef8c0a232daef4a8726a788aed174bae..c6aab191db79d5ba55a0d3b0f493608847af7354 100644 (file)
@@ -14,7 +14,7 @@
  */
 template <class ReturnType, class ArgType, ReturnType (*fun)(ArgType)>
 struct HardFun {
-    ReturnType operator()(ArgType arg) { fun(arg); }
+    ReturnType operator()(ArgType arg) { return fun(arg); }
 };
 
 #endif /* _SQUID_SRC_BASE_HARDFUN_H */