MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / QLinkedList1

Function QLinkedList1

test/cfg/qt.cpp:359–381  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

357
358#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
359void QLinkedList1()
360{
361 // cppcheck-suppress unreadVariable
362 QLinkedList<QString> qstringLinkedList1{"one", "two"};
363
364 QLinkedList<QString> qstringLinkedList2 = {"one", "two"};
365 qstringLinkedList2.clear();
366
367 QLinkedList<QString> qstringLinkedList3;
368 qstringLinkedList3 << "one" << "two";
369 // cppcheck-suppress ignoredReturnValue
370 qstringLinkedList3.startsWith("one");
371 // cppcheck-suppress ignoredReturnValue
372 qstringLinkedList3.endsWith("one");
373 // cppcheck-suppress ignoredReturnValue
374 qstringLinkedList3.count();
375 // cppcheck-suppress ignoredReturnValue
376 qstringLinkedList3.size();
377
378 QLinkedList<QString> qstringLinkedList4;
379 qstringLinkedList4.append("a");
380 qstringLinkedList4.clear();
381}
382
383QLinkedList<int>::iterator QLinkedList3()
384{

Callers

nothing calls this directly

Calls 4

startsWithMethod · 0.80
endsWithMethod · 0.80
clearMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected