]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
auth/Auth.h: mark constructor as explicit
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 12 Mar 2015 16:47:57 +0000 (17:47 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 12 Mar 2015 16:47:57 +0000 (17:47 +0100)
commite6161b7bd269e04376ef07f3b9b839515567930f
tree649ddb0765d1c3e334aef20ae81a9f48ee888636
parent9921836e982818b92e20280eecb74e701523045c
auth/Auth.h: mark constructor as explicit

Fix for cppcheck warning:
 Struct 'AuthAuthorizer' has a constructor with 1 argument that is
 not explicit. Such constructors should in general be explicit for
 type safety reasons. Using the explicit keyword in the constructor
 means some mistakes when using the class can be avoided.

For more information check:
http://www.tantalon.com/pete/cppopt/asyougo.htm#UseExplicitConstructors

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/auth/Auth.h