From e332d3bf31d8066375cff89a9e9cb486b404bcaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20Hellstr=C3=B6mer?= Date: Mon, 9 Sep 2024 01:39:22 +0200 Subject: [PATCH] Fixed compile warnings about QVariant::canConvert() --- sources/autoNum/numerotationcontext.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/autoNum/numerotationcontext.cpp b/sources/autoNum/numerotationcontext.cpp index 62f5d5686..f8d5830d6 100644 --- a/sources/autoNum/numerotationcontext.cpp +++ b/sources/autoNum/numerotationcontext.cpp @@ -57,9 +57,9 @@ bool NumerotationContext::addValue(const QString &type, const QVariant &value, const int increase, const int initialvalue) { - if (!keyIsAcceptable(type) && !value.canConvert(QVariant::String)) + if (!keyIsAcceptable(type) && !value.canConvert()) return false; - if (keyIsNumber(type) && !value.canConvert(QVariant::Int)) + if (keyIsNumber(type) && !value.canConvert()) return false; QString valuestr = value.toString();