diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2023-12-22 15:41:13 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2023-12-22 18:14:43 +0100 |
commit | b26611017a75867efe97b4cf53df96cbd025cc5e (patch) | |
tree | 7cdfbc64943ff06660c8e6ee4b2888073ab38235 /dbaccess/source/ui | |
parent | 20fdec77eb6862fd78c9b090e42cddf6b40dc9be (diff) |
Use emplace_back instead of push_back (dbaccess)
Change-Id: I659e211928dce2a5b8a44ceb3ec95745f66fbd1f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161185
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'dbaccess/source/ui')
-rw-r--r-- | dbaccess/source/ui/control/RelationControl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dbaccess/source/ui/control/RelationControl.cxx b/dbaccess/source/ui/control/RelationControl.cxx index d6e3b3d87f44..279e3a916ef3 100644 --- a/dbaccess/source/ui/control/RelationControl.cxx +++ b/dbaccess/source/ui/control/RelationControl.cxx @@ -223,7 +223,7 @@ namespace dbaui OConnectionLineDataVec& rLines = m_pConnData->GetConnLineDataList(); if ( rLines.size() <= o3tl::make_unsigned(nRow) ) { - rLines.push_back(new OConnectionLineData()); + rLines.emplace_back(); nRow = rLines.size() - 1; // add new past-rLines row m_ops.emplace_back(INSERT, make_pair(nRow+1, nRow+2)); |