mirror of
https://github.com/tristanpenman/valijson.git
synced 2024-12-12 10:13:51 +01:00
Less const-ness
This commit is contained in:
parent
3eaf1bb93e
commit
26f3a8476f
@ -33,9 +33,7 @@ VALIJSON_NORETURN inline void throwLogicError(const std::string& msg) {
|
||||
#endif
|
||||
|
||||
VALIJSON_NORETURN inline void throwNotSupported() {
|
||||
throwRuntimeError("Not supported"); \
|
||||
throwRuntimeError("Not supported");
|
||||
}
|
||||
|
||||
} // namespace valijson
|
||||
|
||||
|
||||
|
@ -2291,7 +2291,7 @@ private:
|
||||
private:
|
||||
|
||||
/// Version of JSON Schema that should be expected when parsing
|
||||
const Version m_version;
|
||||
Version m_version;
|
||||
};
|
||||
|
||||
} // namespace valijson
|
||||
|
@ -1770,16 +1770,16 @@ private:
|
||||
}
|
||||
|
||||
/// The JSON value being validated
|
||||
const AdapterType m_target;
|
||||
AdapterType m_target;
|
||||
|
||||
/// Vector of strings describing the current object context
|
||||
const std::vector<std::string> m_context;
|
||||
std::vector<std::string> m_context;
|
||||
|
||||
/// Optional pointer to a ValidationResults object to be populated
|
||||
ValidationResults *m_results;
|
||||
|
||||
/// Option to use strict type comparison
|
||||
const bool m_strictTypes;
|
||||
bool m_strictTypes;
|
||||
|
||||
/// Cached regex objects for pattern constraint
|
||||
std::unordered_map<std::string, std::regex>& m_regexesCache;
|
||||
|
@ -67,11 +67,10 @@ public:
|
||||
private:
|
||||
|
||||
/// Flag indicating that strict type comparisons should be used
|
||||
const bool strictTypes;
|
||||
bool strictTypes;
|
||||
|
||||
/// Cached regex objects for pattern constraint. Key - pattern.
|
||||
std::unordered_map<std::string, std::regex> regexesCache;
|
||||
|
||||
};
|
||||
|
||||
} // namespace valijson
|
||||
|
Loading…
Reference in New Issue
Block a user