summaryrefslogtreecommitdiff
path: root/connectivity/source/parse/sqlnode.cxx
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-01-21 16:28:33 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2021-01-24 08:36:24 +0100
commit654c5272299057681d295afb76fc984b20868c7c (patch)
tree3deb7bb0b8b787f90ae5b95b59f41d9debcbc8ba /connectivity/source/parse/sqlnode.cxx
parentb35f6971561bc095965e82f230e0307f6694228b (diff)
Use ContainerType().swap and avoid local variables
Change-Id: I773555180758a97aff37f9bc27de83c355d71521 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109761 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'connectivity/source/parse/sqlnode.cxx')
-rw-r--r--connectivity/source/parse/sqlnode.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/connectivity/source/parse/sqlnode.cxx b/connectivity/source/parse/sqlnode.cxx
index 77c1306d699d..387cc54d92b2 100644
--- a/connectivity/source/parse/sqlnode.cxx
+++ b/connectivity/source/parse/sqlnode.cxx
@@ -1496,8 +1496,7 @@ OSQLParser::~OSQLParser()
// Is only set the first time, so we should delete it only when there are no more instances
s_xLocaleData = nullptr;
- RuleIDMap aEmpty;
- s_aReverseRuleIDLookup.swap( aEmpty );
+ RuleIDMap().swap(s_aReverseRuleIDLookup);
}
m_pParseTree = nullptr;
}