summaryrefslogtreecommitdiff
path: root/sw/source/core/model/ModelTraverser.cxx
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2021-08-25 20:16:57 +0900
committerTomaž Vajngerl <quikee@gmail.com>2021-08-26 04:47:01 +0200
commit0b698aa6eb26d75ca4baf677a461aee095f69317 (patch)
tree74c45ae224b31919a97fc6e5f307df5a996c06ee /sw/source/core/model/ModelTraverser.cxx
parent0484630164275e2828f1420b055f05e94b8c73ee (diff)
indexing: move xml parsing into SearchResultLocator
Let's keep unneeded complexity out of SwXTextDocument, so move parsing into SearchResultLocator. As a bonus we can now test parsing. Change-Id: I944bfc43e6953523eee19b26b7f483aa401809aa Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121032 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'sw/source/core/model/ModelTraverser.cxx')
-rw-r--r--sw/source/core/model/ModelTraverser.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/source/core/model/ModelTraverser.cxx b/sw/source/core/model/ModelTraverser.cxx
index 0a01f5cd97c5..bb959a95dec6 100644
--- a/sw/source/core/model/ModelTraverser.cxx
+++ b/sw/source/core/model/ModelTraverser.cxx
@@ -24,6 +24,7 @@ void ModelTraverser::traverse()
auto const& pNodes = m_pDoc->GetNodes();
SwNode* pNode = nullptr;
+
for (sal_uLong n = 0; n < pNodes.Count(); ++n)
{
pNode = pNodes[n];