aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/prov
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-06-04 05:27:34 -0400
committerJack Lloyd <[email protected]>2017-06-04 05:27:34 -0400
commit35300742dc496a74c7a700259de7b1f400d782e7 (patch)
tree15c796d08f750f53ef6990213bf26917b8c2339f /src/lib/prov
parentd6e7c9ea7f029026d84ce2828a26310dd9882679 (diff)
Add basic test for TPM UUID class
Constify some member functions
Diffstat (limited to 'src/lib/prov')
-rw-r--r--src/lib/prov/tpm/uuid.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/prov/tpm/uuid.h b/src/lib/prov/tpm/uuid.h
index 0094f4f83..0cfe6a46f 100644
--- a/src/lib/prov/tpm/uuid.h
+++ b/src/lib/prov/tpm/uuid.h
@@ -86,14 +86,14 @@ class UUID
return h;
}
- const std::vector<uint8_t> binary_value() const { return m_uuid; }
+ const std::vector<uint8_t>& binary_value() const { return m_uuid; }
- bool operator==(const UUID& other)
+ bool operator==(const UUID& other) const
{
return m_uuid == other.m_uuid;
}
- bool operator!=(const UUID& other) { return !(*this == other); }
+ bool operator!=(const UUID& other) const { return !(*this == other); }
bool is_valid() const { return m_uuid.size() == 16; }