diff options
author | Eike Ziller <eike.ziller@qt.io> | 2019-11-01 15:31:19 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2019-11-01 15:31:19 +0100 |
commit | 04bd6e39c8991fcb89ab15728f622a5a3ae8f0b2 (patch) | |
tree | 0517ecde8091d1680651853a4a9d209c0636cffd /src/libs/utils/differ.cpp | |
parent | c92c255d1043f11478a61c1caae4069e7ef47114 (diff) | |
parent | a1d22fd2f79afab8b2379f6d93bcb417b9c8e7d5 (diff) | |
download | qt-creator-04bd6e39c8991fcb89ab15728f622a5a3ae8f0b2.tar.gz |
Merge remote-tracking branch 'origin/4.11'
Conflicts:
share/qtcreator/qml/qmlpuppet/qml2puppet/instances/quick3dnodeinstance.cpp
Change-Id: I8ea57eba526ab830608fd928c28771c5441749f8
Diffstat (limited to 'src/libs/utils/differ.cpp')
-rw-r--r-- | src/libs/utils/differ.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/libs/utils/differ.cpp b/src/libs/utils/differ.cpp index 16fc0ced01..74ec99c78c 100644 --- a/src/libs/utils/differ.cpp +++ b/src/libs/utils/differ.cpp @@ -236,16 +236,12 @@ static int cleanupSemanticsScore(const QString &text1, const QString &text2) static bool isWhitespace(const QChar &c) { - if (c == ' ' || c == '\t') - return true; - return false; + return c == ' ' || c == '\t'; } static bool isNewLine(const QChar &c) { - if (c == '\n') - return true; - return false; + return c == '\n'; } /* @@ -719,9 +715,7 @@ static bool diffWithWhitespaceExpandedInEqualities(const QList<Diff> &leftInput, return false; *rightOutput = decodeExpandedWhitespace(rightDiffList, commonRightCodeMap, &ok); - if (!ok) - return false; - return true; + return ok; } static void appendWithEqualitiesSquashed(const QList<Diff> &leftInput, |