Use std::transform
Change-Id: If3b361d4ba7155547316796265cbd3955a4b8071
This commit is contained in:
parent
db10a790df
commit
ebb5068a43
@ -891,19 +891,14 @@ void PropValVector::Insert(const beans::PropertyValue& rVal)
|
||||
}
|
||||
m_aValues.push_back(rVal);
|
||||
}
|
||||
|
||||
uno::Sequence< uno::Any > PropValVector::getValues()
|
||||
{
|
||||
uno::Sequence< uno::Any > aRet( m_aValues.size() );
|
||||
uno::Any* pValues = aRet.getArray();
|
||||
sal_Int32 nVal = 0;
|
||||
auto aIt = m_aValues.begin();
|
||||
while (aIt != m_aValues.end())
|
||||
{
|
||||
pValues[nVal++] = aIt->Value;
|
||||
++aIt;
|
||||
}
|
||||
return aRet;
|
||||
std::vector<uno::Any> aRet;
|
||||
std::transform(m_aValues.begin(), m_aValues.end(), std::back_inserter(aRet), [](const beans::PropertyValue& rValue) { return rValue.Value; });
|
||||
return comphelper::containerToSequence(aRet);
|
||||
}
|
||||
|
||||
uno::Sequence< OUString > PropValVector::getNames()
|
||||
{
|
||||
std::vector<OUString> aRet;
|
||||
@ -911,7 +906,6 @@ uno::Sequence< OUString > PropValVector::getNames()
|
||||
return comphelper::containerToSequence(aRet);
|
||||
}
|
||||
|
||||
|
||||
void StyleSheetTable::ApplyStyleSheets( FontTablePtr rFontTable )
|
||||
{
|
||||
try
|
||||
|
Loading…
x
Reference in New Issue
Block a user