mirror of
https://github.com/silverqx/TinyORM.git
synced 2026-05-12 20:38:56 -05:00
bugfix undefined symbol
Occurred when was disabled tom and enabled orm.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user