summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/querydesign/querycontroller.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-09-11 08:54:30 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-09-11 09:44:12 +0200
commit3428bd5fa3626844355f20997ba690fd04297982 (patch)
tree683256f95828e54edecdd87fbde0ce32a634a834 /dbaccess/source/ui/querydesign/querycontroller.cxx
parent9c5c905680f7cb58eb3d0fbf25725a50c17896da (diff)
clang-tidy modernize-use-emplace in d*
Change-Id: I79ac90faf24b4c741545e411dbaea7826c2df531 Reviewed-on: https://gerrit.libreoffice.org/42150 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'dbaccess/source/ui/querydesign/querycontroller.cxx')
-rw-r--r--dbaccess/source/ui/querydesign/querycontroller.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/dbaccess/source/ui/querydesign/querycontroller.cxx b/dbaccess/source/ui/querydesign/querycontroller.cxx
index 3a56c45f912a..1ab8782d4034 100644
--- a/dbaccess/source/ui/querydesign/querycontroller.cxx
+++ b/dbaccess/source/ui/querydesign/querycontroller.cxx
@@ -1581,13 +1581,13 @@ static std::vector< CommentStrip > getComment( const OUString& rQuery )
{
bComment2 = false;
aBuf.append( &pCopy[++i], 1);
- aRet.push_back( CommentStrip( aBuf.makeStringAndClear(), false));
+ aRet.emplace_back( aBuf.makeStringAndClear(), false);
}
}
else
{
// comment can't close anymore, actually an error, but..
- aRet.push_back( CommentStrip( aBuf.makeStringAndClear(), false));
+ aRet.emplace_back( aBuf.makeStringAndClear(), false);
}
continue;
}
@@ -1597,7 +1597,7 @@ static std::vector< CommentStrip > getComment( const OUString& rQuery )
{
if (i == nQueryLen-1 && pCopy[i] != '\n')
aBuf.append( &pCopy[i], 1);
- aRet.push_back( CommentStrip( aBuf.makeStringAndClear(), true));
+ aRet.emplace_back( aBuf.makeStringAndClear(), true);
bComment = false;
}
else if (!aRet.empty())