diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-15 15:30:09 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-18 11:07:31 +0200 |
commit | 3b6091ca42cd2d9f230e7d81648c34f3d7085107 (patch) | |
tree | 6bc9e56e46bfabd7e03915a307bbce675536a98a /desktop | |
parent | a51c423743835793bf132c925ad962283fd2dc22 (diff) |
document the swap-on-free idiom usage
Effective C++, item 17
Change-Id: I5c6f20c9631f1ca86b481a56ef08d578a7addbad
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/app/dispatchwatcher.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop/source/app/dispatchwatcher.hxx b/desktop/source/app/dispatchwatcher.hxx index 125e9d98aedd..228b6a191428 100644 --- a/desktop/source/app/dispatchwatcher.hxx +++ b/desktop/source/app/dispatchwatcher.hxx @@ -44,7 +44,7 @@ class DispatchWatcherHashMap : public ::boost::unordered_map< OUString, sal_Int3 public: inline void free() { - DispatchWatcherHashMap().swap( *this ); + DispatchWatcherHashMap().swap( *this ); // get rid of reserved capacity } }; |