bugfix undefined symbol

Occurred when was disabled tom and enabled orm.
This commit is contained in:
silverqx
2022-06-08 16:16:49 +02:00
parent c6f06d6280
commit 9812c48662
2 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -35,10 +35,12 @@ namespace Orm::Tiny::Utils
/*! Convert a value to studly caps case. */
static QString studly(QString string);
#ifndef TINYORM_DISABLE_TOM
#if !defined(TINYORM_DISABLE_TOM) || !defined(TINYORM_DISABLE_ORM)
/*! Check if the given string is the number, signed or unsigned. */
static bool isNumber(QStringView string, bool allowFloating = false);
#endif
#if !defined(TINYORM_DISABLE_TOM)
/*! Split a string by the given width (not in the middle of a word). */
static std::vector<QString>
splitStringByWidth(const QString &string, int width);
+3 -1
View File
@@ -113,7 +113,7 @@ QString String::studly(QString string)
return (*studlyCache)[std::move(key)] = value.replace(SPACE, "");
}
#ifndef TINYORM_DISABLE_TOM
#if !defined(TINYORM_DISABLE_TOM) || !defined(TINYORM_DISABLE_ORM)
bool String::isNumber(const QStringView string, const bool allowFloating)
{
/* Performance boost was amazing after the QRegularExpression has been removed,
@@ -150,7 +150,9 @@ bool String::isNumber(const QStringView string, const bool allowFloating)
return nonDigit == string.cend();
}
#endif
#ifndef TINYORM_DISABLE_TOM
namespace
{
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)