summaryrefslogtreecommitdiff
path: root/accessibility/source/extended
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2023-12-22 13:13:12 +0100
committerJulien Nabet <serval2412@yahoo.fr>2023-12-22 18:11:55 +0100
commit17f1d2fe890159cfa881be2d16239e078e0a5c89 (patch)
tree9021954ccde5dddd287b936b9844f4e80ba21e2f /accessibility/source/extended
parent3001179cb72a98c14acc6ef8323eebadf526f71b (diff)
Use emplace_back instead of push_back (accessibility)
Change-Id: I1b5aa26e92c6e5eaef43bd1c03281d4068b0487a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161175 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'accessibility/source/extended')
-rw-r--r--accessibility/source/extended/textwindowaccessibility.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/accessibility/source/extended/textwindowaccessibility.cxx b/accessibility/source/extended/textwindowaccessibility.cxx
index 19c8d139c6c6..f1ccc69c413d 100644
--- a/accessibility/source/extended/textwindowaccessibility.cxx
+++ b/accessibility/source/extended/textwindowaccessibility.cxx
@@ -1579,8 +1579,7 @@ void Document::init()
m_xParagraphs->reserve(static_cast< Paragraphs::size_type >(nCount));
// numeric overflow is harmless here
for (::sal_uInt32 i = 0; i < nCount; ++i)
- m_xParagraphs->push_back(ParagraphInfo(static_cast< ::sal_Int32 >(
- m_rEngine.GetTextHeight(i))));
+ m_xParagraphs->emplace_back(m_rEngine.GetTextHeight(i));
// XXX numeric overflow
m_nViewOffset = static_cast< ::sal_Int32 >(
m_rView.GetStartDocPos().Y()); // XXX numeric overflow