make stuff const and use move

This commit is contained in:
Ari Lazier 2015-06-10 14:39:01 -07:00
parent 0e81927e78
commit 4a87bc6505
1 changed files with 4 additions and 4 deletions

View File

@ -118,8 +118,8 @@ namespace realm {
ObjectStoreException(Kind kind, Dict dict = Dict()) : m_kind(kind), m_dict(dict) {}
ObjectStoreException::Kind kind() { return m_kind; }
const ObjectStoreException::Dict &dict() { return m_dict; }
ObjectStoreException::Kind kind() const { return m_kind; }
const ObjectStoreException::Dict &dict() const { return m_dict; }
private:
Kind m_kind;
@ -130,8 +130,8 @@ namespace realm {
public:
ObjectStoreValidationException(std::vector<std::string> validation_errors, std::string object_type) :
m_validation_errors(validation_errors), m_object_type(object_type) {}
std::vector<std::string> validation_errors() { return m_validation_errors; }
std::string object_type() { return m_object_type; }
const std::vector<std::string> &validation_errors() const { return m_validation_errors; }
std::string object_type() const { return m_object_type; }
private:
std::vector<std::string> m_validation_errors;