Skip to content

Commit

Permalink
const
Browse files Browse the repository at this point in the history
  • Loading branch information
iceboy233 committed Apr 12, 2020
1 parent e998d86 commit 97a2915
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion security/key.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Key::Impl {

uint64_t fingerprint() const { return fingerprint_; }
const KeyArray &array() const { return array_; }
EVP_AEAD_CTX &context() { return context_; }
const EVP_AEAD_CTX &context() const { return context_; }

private:
uint64_t fingerprint_;
Expand Down
2 changes: 1 addition & 1 deletion security/key.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class Key {

private:
class Impl;
std::shared_ptr<Impl> impl_;
std::shared_ptr<const Impl> impl_;
};

bool operator==(const Key &a, const Key &b);
Expand Down

0 comments on commit 97a2915

Please sign in to comment.