- text().forOutliner(str, 0);
- buffer().tocBackend().toc(type).push_back(TocItem(pit, 0, str, output_active));
+ // this is unlikely to be terribly long
+ text().forOutliner(str, INT_MAX);
+ TocBuilder & b = buffer().tocBackend().builder(type);
+ b.pushItem(pit, str, output_active);