| 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(); |
nothing calls this directly
no test coverage detected