tdf#145538: Use range based for loop in prstylecond.cxx
Change-Id: Id97859d6923e02ea16ac860dff2081809870b04b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/186783 Tested-by: Jenkins Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
This commit is contained in:
committed by
Ilmari Lauhakangas
parent
28dade4c94
commit
02eac74063
@@ -70,16 +70,16 @@ const ConditionMap g_ConditionMap[] =
|
||||
|
||||
OUString GetParaStyleCondExternal( std::u16string_view internal)
|
||||
{
|
||||
for (size_t i = 0; i < SAL_N_ELEMENTS(g_ConditionMap); ++i)
|
||||
for (const auto& rCondition : g_ConditionMap)
|
||||
{
|
||||
if (o3tl::equalsAscii(internal, g_ConditionMap[i].aInternal ))
|
||||
if (o3tl::equalsAscii(internal, rCondition.aInternal ))
|
||||
{
|
||||
OUString aResult = GetXMLToken( g_ConditionMap[i].nExternal ) +
|
||||
OUString aResult = GetXMLToken( rCondition.nExternal ) +
|
||||
"()";
|
||||
if (g_ConditionMap[i].aValue != -1)
|
||||
if (rCondition.aValue != -1)
|
||||
{
|
||||
aResult += "=" +
|
||||
OUString::number( g_ConditionMap[i].aValue );
|
||||
OUString::number( rCondition.aValue );
|
||||
}
|
||||
return aResult;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user