summaryrefslogtreecommitdiff
path: root/vcl/qt5
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-05-21 09:13:11 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-05-21 12:52:36 +0200
commit09c757cbdd3f973c97151203d8ff522141102da7 (patch)
treed1424cd2d3698965f847dc161c282ce1d00f9a94 /vcl/qt5
parent22a4b7e621cbb6cab1d82d57c370e3cf33b4e74e (diff)
use for-range on Sequence in testtools..xmloff
Change-Id: I05b02a2f8b4b9091c7de0f7e98409d5b608ed250 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94610 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/qt5')
-rw-r--r--vcl/qt5/Qt5AccessibleWidget.cxx21
1 files changed, 10 insertions, 11 deletions
diff --git a/vcl/qt5/Qt5AccessibleWidget.cxx b/vcl/qt5/Qt5AccessibleWidget.cxx
index 0ffdf102a10a..829e7e3a818d 100644
--- a/vcl/qt5/Qt5AccessibleWidget.cxx
+++ b/vcl/qt5/Qt5AccessibleWidget.cxx
@@ -848,26 +848,25 @@ QString Qt5AccessibleWidget::attributes(int offset, int* startOffset, int* endOf
return QString();
}
- Sequence<PropertyValue> attribs = xText->getCharacterAttributes(offset, Sequence<OUString>());
- const PropertyValue* pValues = attribs.getConstArray();
+ const Sequence<PropertyValue> attribs
+ = xText->getCharacterAttributes(offset, Sequence<OUString>());
OUString aRet;
- for (sal_Int32 i = 0; i < attribs.getLength(); i++)
+ for (PropertyValue const& prop : attribs)
{
- if (pValues[i].Name == "CharFontName")
+ if (prop.Name == "CharFontName")
{
- aRet += "font-family:" + *o3tl::doAccess<OUString>(pValues[i].Value) + ";";
+ aRet += "font-family:" + *o3tl::doAccess<OUString>(prop.Value) + ";";
continue;
}
- if (pValues[i].Name == "CharHeight")
+ if (prop.Name == "CharHeight")
{
- aRet += "font-size:" + OUString::number(*o3tl::doAccess<double>(pValues[i].Value))
- + "pt;";
+ aRet += "font-size:" + OUString::number(*o3tl::doAccess<double>(prop.Value)) + "pt;";
continue;
}
- if (pValues[i].Name == "CharWeight")
+ if (prop.Name == "CharWeight")
{
- aRet += "font-weight:"
- + lcl_convertFontWeight(*o3tl::doAccess<double>(pValues[i].Value)) + ";";
+ aRet += "font-weight:" + lcl_convertFontWeight(*o3tl::doAccess<double>(prop.Value))
+ + ";";
continue;
}
}