diff options
author | tholenst <tholenst@google.com> | 2018-11-29 07:07:08 -0800 |
---|---|---|
committer | Tink Team <noreply@google.com> | 2018-12-04 17:37:34 -0800 |
commit | 7c86c3e358499ff3942ea28a4bf8f3b772c86c4b (patch) | |
tree | 6c9aaa5ad0b296001ce12148a361d2179163fae1 /cc/binary_keyset_writer.h | |
parent | b91042c753b426e9abc0c3046bc2a09ca2dfd407 (diff) | |
download | tink-7c86c3e358499ff3942ea28a4bf8f3b772c86c4b.tar.gz |
Make a bunch of single argument constructors "explicit".
These should be marked explicit to avoid unwanted conversions.
PiperOrigin-RevId: 223339925
GitOrigin-RevId: 1516128555a9055d6fcec6b4436fa2799938c4e2
Diffstat (limited to 'cc/binary_keyset_writer.h')
-rw-r--r-- | cc/binary_keyset_writer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/binary_keyset_writer.h b/cc/binary_keyset_writer.h index f7dd7158a..6e3103f72 100644 --- a/cc/binary_keyset_writer.h +++ b/cc/binary_keyset_writer.h @@ -43,7 +43,7 @@ class BinaryKeysetWriter : public KeysetWriter { Write(const google::crypto::tink::EncryptedKeyset& encrypted_keyset) override; private: - BinaryKeysetWriter(std::unique_ptr<std::ostream> destination_stream) + explicit BinaryKeysetWriter(std::unique_ptr<std::ostream> destination_stream) : destination_stream_(std::move(destination_stream)) {} std::unique_ptr<std::ostream> destination_stream_; |