mirror of
https://github.com/fralx/LimeReport.git
synced 2025-05-17 20:53:46 +03:00
Fixed warnings
This commit is contained in:
parent
c7e4028637
commit
90cdcb86ea
@ -365,15 +365,15 @@ void TextItem::updateLayout()
|
||||
|
||||
bool TextItem::isNeedExpandContent() const
|
||||
{
|
||||
#if (QT_VERSION < QT_VERSION_CHECK(5, 15, 1))
|
||||
QRegExp rx("$*\\{[^{]*\\}");
|
||||
#else
|
||||
bool result = false;
|
||||
QRegularExpression rx("\\$*\\{[^{]*\\}");
|
||||
const QString pattern = "\\$*\\{[^{]*\\}";
|
||||
#if (QT_VERSION < QT_VERSION_CHECK(5, 15, 1))
|
||||
QRegExp rx(pattern);
|
||||
#else
|
||||
QRegularExpression rx(pattern);
|
||||
#endif
|
||||
result = content().contains(rx) || isContentBackedUp();
|
||||
return result;
|
||||
#endif
|
||||
return content().contains(rx) || isContentBackedUp();
|
||||
}
|
||||
|
||||
QString TextItem::replaceBR(QString text) const { return text.replace("<br/>", "\n"); }
|
||||
|
@ -489,7 +489,6 @@ QString DataSourceManager::replaceVariables(QString value)
|
||||
}
|
||||
return value;
|
||||
#endif
|
||||
return QString();
|
||||
}
|
||||
|
||||
QString DataSourceManager::replaceVariables(QString query, QMap<QString, QString>& aliasesToParam)
|
||||
|
Loading…
Reference in New Issue
Block a user