Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
}
}
-static void prepareEngine_helper(QRegExpPrivate *priv)
+static void prepareEngine(QRegExpPrivate *priv)
{
+ if (priv->eng)
+ return;
bool initMatchState = !priv->eng;
#if !defined(QT_NO_REGEXP_OPTIM)
if (!priv->eng && globalEngineCache()) {
priv->matchState.prepareForMatch(priv->eng);
}
-inline static void prepareEngine(QRegExpPrivate *priv)
-{
- if (priv->eng)
- return;
- prepareEngine_helper(priv);
-}
-
static void prepareEngineForMatch(QRegExpPrivate *priv, const QString &str)
{
prepareEngine(priv);