diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-12-12 10:47:46 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-12-12 10:55:57 +0100 |
commit | d49e2e46099e3599bdc8d81efe9ee8bd1cdcb6ee (patch) | |
tree | 51e4e8136590a55681f57ac3e973a204768bc808 /desktop/source/app | |
parent | e4e28359d688992deb8be5fbfdb3bcae855a7fe2 (diff) |
use std::<some_container>::swap, instead of copy and clear
Change-Id: If49c33e271426ff5c2d0c6cc4010670f797bdd38
Reviewed-on: https://gerrit.libreoffice.org/65001
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'desktop/source/app')
-rw-r--r-- | desktop/source/app/officeipcthread.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop/source/app/officeipcthread.cxx b/desktop/source/app/officeipcthread.cxx index 80432dd12d3f..3b7ba4633d06 100644 --- a/desktop/source/app/officeipcthread.cxx +++ b/desktop/source/app/officeipcthread.cxx @@ -1343,8 +1343,8 @@ bool RequestHandler::ExecuteCmdLineRequests( pGlobal->mpDispatchWatcher); // copy for execute - std::vector<DispatchWatcher::DispatchRequest> aTempList( aDispatchList ); - aDispatchList.clear(); + std::vector<DispatchWatcher::DispatchRequest> aTempList; + aTempList.swap( aDispatchList ); aGuard.clear(); |