Kaydet (Commit) e57afb5f authored tarafından Matteo Casalin's avatar Matteo Casalin

Simplify

Change-Id: I02492fe6532baedffa21de6d2f98955a57cb856d
Reviewed-on: https://gerrit.libreoffice.org/66228
Tested-by: Jenkins
Reviewed-by: 's avatarMatteo Casalin <matteo.casalin@yahoo.com>
üst 60e308e6
......@@ -228,14 +228,9 @@ STDMETHODIMP CAccEditableText::setAttributes(long startOffset, long endOffset, B
OUString ouStr(o3tl::toU(*attributes));
sal_Int32 nIndex = 0;
vector< OUString > vecAttr;
do
{
OUString ouToken = ouStr.getToken(0, ';', nIndex);
vecAttr.push_back(ouToken);
}
while(nIndex >= 0);
for (sal_Int32 nIndex {0}; nIndex >= 0; )
vecAttr.push_back(ouStr.getToken(0, ';', nIndex));
Sequence< PropertyValue > beanSeq(vecAttr.size());
for(std::vector<OUString>::size_type i = 0; i < vecAttr.size(); i ++)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment