summaryrefslogtreecommitdiff
path: root/src/verify.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-12-16 12:23:15 +0100
committerCarl Hetherington <cth@carlh.net>2025-12-20 01:52:16 +0100
commitff869661d7632bc40aec17d1d42e31f18bd0c40b (patch)
tree9a921beb0fe0f07765abd16247712f89728e9c1d /src/verify.h
parentf8b7b44ac1ea1e6744026beec57465707b04f07f (diff)
Derive verification note type from the code...v1.10.45
...rather than having to specify it each time.
Diffstat (limited to 'src/verify.h')
-rw-r--r--src/verify.h30
1 files changed, 11 insertions, 19 deletions
diff --git a/src/verify.h b/src/verify.h
index a9ebfb44..01d8f6ee 100644
--- a/src/verify.h
+++ b/src/verify.h
@@ -529,45 +529,38 @@ public:
INVALID_PKL_NAMESPACE,
};
- VerificationNote (Type type, Code code)
- : _type (type)
- , _code (code)
+ VerificationNote(Code code)
+ : _code(code)
{}
- VerificationNote (Type type, Code code, std::string note)
- : _type (type)
- , _code (code)
+ VerificationNote(Code code, std::string note)
+ : _code(code)
{
_data[Data::NOTE] = note;
}
- VerificationNote (Type type, Code code, boost::filesystem::path file)
- : _type (type)
- , _code (code)
+ VerificationNote(Code code, boost::filesystem::path file)
+ : _code(code)
{
_data[Data::FILE] = file;
}
- VerificationNote (Type type, Code code, std::string note, boost::filesystem::path file)
- : _type (type)
- , _code (code)
+ VerificationNote(Code code, std::string note, boost::filesystem::path file)
+ : _code(code)
{
_data[Data::NOTE] = note;
_data[Data::FILE] = file;
}
- VerificationNote (Type type, Code code, std::string note, boost::filesystem::path file, uint64_t line)
- : _type (type)
- , _code (code)
+ VerificationNote(Code code, std::string note, boost::filesystem::path file, uint64_t line)
+ : _code (code)
{
_data[Data::NOTE] = note;
_data[Data::FILE] = file;
_data[Data::LINE] = line;
}
- Type type () const {
- return _type;
- }
+ Type type() const;
Code code () const {
return _code;
@@ -694,7 +687,6 @@ public:
}
private:
- Type _type;
Code _code;
std::map<Data, boost::any> _data;
};