summaryrefslogtreecommitdiff
path: root/xmloff/source/draw/ximpnote.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-04-28 12:29:17 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-04-28 13:25:27 +0200
commit1705fbe9daac56ee9bea8d8fd7c7f57e2bec49b5 (patch)
treeaaf39244173a4cf20df6568140ebdbe5ec055656 /xmloff/source/draw/ximpnote.cxx
parentdfa8e18e8e6c7ad87e423393f8293a20188de1fd (diff)
move the castToFastAttributeList function
to the slightly higher namespace, to make it easy and more readable to use directly in a for-loop-range expression. And make it return a reference rather than a pointer, since it is never allowed to be nullptr. Change-Id: I15d0b32493ef65cfc601b247c272b318f1eadfd8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93049 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/draw/ximpnote.cxx')
-rw-r--r--xmloff/source/draw/ximpnote.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/xmloff/source/draw/ximpnote.cxx b/xmloff/source/draw/ximpnote.cxx
index 8c2aba66fdd5..5f06a6132f31 100644
--- a/xmloff/source/draw/ximpnote.cxx
+++ b/xmloff/source/draw/ximpnote.cxx
@@ -30,9 +30,7 @@ SdXMLNotesContext::SdXMLNotesContext( SdXMLImport& rImport,
{
OUString sStyleName, sPageMasterName;
- sax_fastparser::FastAttributeList *pAttribList =
- sax_fastparser::FastAttributeList::castToFastAttributeList( xAttrList );
- for (auto &aIter : *pAttribList)
+ for (auto &aIter : sax_fastparser::castToFastAttributeList( xAttrList ))
{
OUString sValue = aIter.toString();
switch(aIter.getToken())