MCPcopy Create free account
hub / github.com/TeXworks/texworks / foreach

Function foreach

modules/QtPDF/src/PDFBackend.cpp:267–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265
266 QWriteLocker docLocker(_docLock.data());
267 foreach(QSharedPointer<Page> page, _pages) {
268 if (page.isNull())
269 continue;
270 page->detachFromParent();
271 }
272 // Note: clear() releases all QSharedPointer to pages, thereby destroying them
273 // (if they are not used elsewhere)
274 _pages.clear();

Callers

nothing calls this directly

Calls 5

isNullMethod · 0.80
detachFromParentMethod · 0.80
leftMethod · 0.80
topMethod · 0.80
getImageMethod · 0.45

Tested by

no test coverage detected