diff options
author | Lars Knoll <lars.knoll@qt.io> | 2020-06-27 11:26:42 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2020-07-06 21:31:35 +0200 |
commit | 9117e3850b9d395a9741fa4b63c5b59ea7767390 (patch) | |
tree | 8a30c1c8654724e6cd3270e8d679024390c58186 /tests/auto/corelib | |
parent | e5fbe10647d35e4c27413a29a08376e3335e16b0 (diff) |
Rename from() to sliced()
After API discussions, agreement was that from(n) is a bad name
for the method. Let's go with sliced(n) instead.
Change-Id: I0338cc150148a5008c3ee72bd8fda96fb93e9c35
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/corelib')
-rw-r--r-- | tests/auto/corelib/text/qstringapisymmetry/tst_qstringapisymmetry.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/corelib/text/qstringapisymmetry/tst_qstringapisymmetry.cpp b/tests/auto/corelib/text/qstringapisymmetry/tst_qstringapisymmetry.cpp index d363c01f68..69ad52c08b 100644 --- a/tests/auto/corelib/text/qstringapisymmetry/tst_qstringapisymmetry.cpp +++ b/tests/auto/corelib/text/qstringapisymmetry/tst_qstringapisymmetry.cpp @@ -1780,7 +1780,7 @@ void tst_QStringApiSymmetry::sliced_impl() const auto s = make<String>(unicode, latin1, utf8); { - const auto from = s.from(pos); + const auto from = s.sliced(pos); const auto sliced = s.sliced(pos, n); QCOMPARE(from, result); @@ -1792,7 +1792,7 @@ void tst_QStringApiSymmetry::sliced_impl() QCOMPARE(sliced.isEmpty(), result2.isEmpty()); } { - const auto from = detached(s).from(pos); + const auto from = detached(s).sliced(pos); const auto sliced = detached(s).sliced(pos, n); QCOMPARE(from, result); |