diff options
| author | Rusty Wagner <rusty.wagner@gmail.com> | 2025-06-24 17:55:48 -0400 |
|---|---|---|
| committer | Alexander Taylor <alex@vector35.com> | 2025-06-25 18:36:47 -0400 |
| commit | c41f264a1dba68c89b4a224a70e3a5783f7fa879 (patch) | |
| tree | 00bb6e91d86b708bff7265ed7179a6ef2793b7fb /component.cpp | |
| parent | b1a7666164a000c5255f90568ed9597b58ce276a (diff) | |
Remove implicit conversions from Confidence to underlying type, these can cause bugs and also issues with C++20
Diffstat (limited to 'component.cpp')
| -rw-r--r-- | component.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/component.cpp b/component.cpp index 30431e90..0dd7db21 100644 --- a/component.cpp +++ b/component.cpp @@ -155,7 +155,7 @@ std::vector<DataVariable> Component::GetContainedDataVariables() for (size_t i = 0; i < count; ++i) { result.emplace_back(variables[i].address, - Confidence(new Type(BNNewTypeReference(variables[i].type)), variables[i].typeConfidence), + Confidence<Ref<Type>>(new Type(BNNewTypeReference(variables[i].type)), variables[i].typeConfidence), variables[i].autoDiscovered); } @@ -196,7 +196,7 @@ std::vector<DataVariable> Component::GetReferencedDataVariables() for (size_t i = 0; i < count; ++i) { result.emplace_back(variables[i].address, - Confidence(new Type(BNNewTypeReference(variables[i].type)), variables[i].typeConfidence), + Confidence<Ref<Type>>(new Type(BNNewTypeReference(variables[i].type)), variables[i].typeConfidence), variables[i].autoDiscovered); } |
