diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-11 11:36:47 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-11 13:51:29 +0200 |
commit | db17a874af37350b3270932175854ee674447bc1 (patch) | |
tree | fecc983fb75d3a4072cc7bd344fc824d548deb0d /sc/inc/reordermap.hxx | |
parent | dd8a400bbbb1b8d5592a870f2036a4df3d005a7d (diff) |
convert std::map::insert to std::map::emplace II
Change-Id: Ief8bd59c903625ba65b75114b7b52c3b7ecbd331
Reviewed-on: https://gerrit.libreoffice.org/41019
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/inc/reordermap.hxx')
-rw-r--r-- | sc/inc/reordermap.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/inc/reordermap.hxx b/sc/inc/reordermap.hxx index b7bb5d5ae1c9..3f3622085e85 100644 --- a/sc/inc/reordermap.hxx +++ b/sc/inc/reordermap.hxx @@ -24,12 +24,12 @@ public: typedef DataType::const_iterator const_iterator; typedef DataType::iterator iterator; - const_iterator end() const; + const_iterator end() const { return maData.end(); } - std::pair<iterator, bool> - insert( DataType::value_type const& val ); + template<class... Args> + std::pair<iterator,bool> emplace(Args&&... args) { return maData.emplace(std::forward<Args>(args)...); } - const_iterator find( DataType::key_type key ) const; + const_iterator find( DataType::key_type key ) const { return maData.find(key); } }; } |