Clean up some array dereferncing
Use array dereferencing notation ptr[expr] rather than the more verbose and less readable *(ptr + expr). Change-Id: Ie98986e7f622aa1a94f3f14bc362ed65767f9d92 Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@qt.io>
This commit is contained in:
parent
33d7f76f0e
commit
c03803b9b3
@ -811,9 +811,9 @@ Q_TESTLIB_EXPORT void qtest_qParseArgs(int argc, const char *const argv[], bool
|
||||
// we load the QML files. So just store the data for now.
|
||||
int colon = -1;
|
||||
int offset;
|
||||
for (offset = 0; *(argv[i]+offset); ++offset) {
|
||||
if (*(argv[i]+offset) == ':') {
|
||||
if (*(argv[i]+offset+1) == ':') {
|
||||
for (offset = 0; argv[i][offset]; ++offset) {
|
||||
if (argv[i][offset] == ':') {
|
||||
if (argv[i][offset + 1] == ':') {
|
||||
// "::" is used as a test name separator.
|
||||
// e.g. "ClickTests::test_click:row1".
|
||||
++offset;
|
||||
|
Loading…
x
Reference in New Issue
Block a user