diff options
author | Danny Al-Gaaf <danny.al-gaaf@bisect.de> | 2018-04-25 09:30:56 +0200 |
---|---|---|
committer | Danny Al-Gaaf <danny.al-gaaf@bisect.de> | 2018-05-02 17:01:58 +0200 |
commit | 39ffec281af577c766c619d568f7a7051d108b00 (patch) | |
tree | 79c527cc3871b9b113f1aabffb3cef9647ebb7be /src/rgw/rgw_crypt_sanitize.h | |
parent | Merge PR #21762 into master (diff) | |
download | ceph-39ffec281af577c766c619d568f7a7051d108b00.tar.xz ceph-39ffec281af577c766c619d568f7a7051d108b00.zip |
misc: mark constructors as explicit
Set 218 constructors as explicit to avoid implicit usage.
Fix for cppcheck warning:
Class 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:
https://www.codeproject.com/Articles/28663/Explicit-Constructor-in-C
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Diffstat (limited to 'src/rgw/rgw_crypt_sanitize.h')
-rw-r--r-- | src/rgw/rgw_crypt_sanitize.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rgw/rgw_crypt_sanitize.h b/src/rgw/rgw_crypt_sanitize.h index 628577f90c7..548c1240106 100644 --- a/src/rgw/rgw_crypt_sanitize.h +++ b/src/rgw/rgw_crypt_sanitize.h @@ -57,7 +57,7 @@ struct auth { */ struct log_content { const boost::string_view buf; - log_content(const boost::string_view buf) + explicit log_content(const boost::string_view buf) : buf(buf) {} }; |