diff options
author | Simon Hausmann <simon.hausmann@qt.io> | 2018-05-18 15:07:39 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2018-06-29 15:41:49 +0000 |
commit | 8b3113725fda334e86f0a103572e29352941c060 (patch) | |
tree | 4d3e2913e88d3ec79bef8135467cb31e9fb14654 /src/qml/compiler/qv4compileddata_p.h | |
parent | b8aecb02ade333c34216a6313282150a3211ac4f (diff) |
Internal naming cleanup
Rename QV4::CompiledData::Binding::containsTranslations() to
isTranslationBinding() in an attempt to improve the readability of the
code.
Change-Id: I73898298c4295d0def812c0526d908254d73c243
Reviewed-by: Michael Brasser <michael.brasser@live.com>
Diffstat (limited to 'src/qml/compiler/qv4compileddata_p.h')
-rw-r--r-- | src/qml/compiler/qv4compileddata_p.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/compiler/qv4compileddata_p.h b/src/qml/compiler/qv4compileddata_p.h index d81ded5044..c1be00ea27 100644 --- a/src/qml/compiler/qv4compileddata_p.h +++ b/src/qml/compiler/qv4compileddata_p.h @@ -461,8 +461,8 @@ struct Q_QML_PRIVATE_EXPORT Binding static QString escapedString(const QString &string); - bool containsTranslations() const { return type == Type_Translation || type == Type_TranslationById; } - bool evaluatesToString() const { return type == Type_String || containsTranslations(); } + bool isTranslationBinding() const { return type == Type_Translation || type == Type_TranslationById; } + bool evaluatesToString() const { return type == Type_String || isTranslationBinding(); } QString valueAsString(const Unit *unit) const; QString valueAsScriptString(const Unit *unit) const; |