aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/model/DataObject.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2025-02-03 18:13:23 +0000
committersaturneric <[email protected]>2025-02-03 19:14:29 +0000
commit37d5b7e5546fde0433a2480eea5a2c3b222139ff (patch)
tree9c1f6f2d4b456dea2fb1af4aefcf4f1ac6ae97ee /src/core/model/DataObject.cpp
parentfix: set pb range when size of operas > 1 (diff)
downloadGpgFrontend-37d5b7e5546fde0433a2480eea5a2c3b222139ff.tar.gz
GpgFrontend-37d5b7e5546fde0433a2480eea5a2c3b222139ff.zip
fix: qt5 compile issues
Diffstat (limited to 'src/core/model/DataObject.cpp')
-rw-r--r--src/core/model/DataObject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/model/DataObject.cpp b/src/core/model/DataObject.cpp
index 13838941..dbe5588e 100644
--- a/src/core/model/DataObject.cpp
+++ b/src/core/model/DataObject.cpp
@@ -41,7 +41,7 @@ class DataObject::Impl {
void AppendObject(const std::any& obj) { params_.push_back(obj); }
auto GetParameter(size_t index) -> std::any {
- if (index >= params_.size()) {
+ if (index >= static_cast<size_t>(params_.size())) {
throw std::out_of_range("index out of range");
}
return params_[index];