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 /framework/inc/xml/toolboxdocumenthandler.hxx | |
parent | a51c423743835793bf132c925ad962283fd2dc22 (diff) |
document the swap-on-free idiom usage
Effective C++, item 17
Change-Id: I5c6f20c9631f1ca86b481a56ef08d578a7addbad
Diffstat (limited to 'framework/inc/xml/toolboxdocumenthandler.hxx')
-rw-r--r-- | framework/inc/xml/toolboxdocumenthandler.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/inc/xml/toolboxdocumenthandler.hxx b/framework/inc/xml/toolboxdocumenthandler.hxx index 9eadc337ae01..f1bb2c32226e 100644 --- a/framework/inc/xml/toolboxdocumenthandler.hxx +++ b/framework/inc/xml/toolboxdocumenthandler.hxx @@ -117,7 +117,7 @@ class FWE_DLLPUBLIC OReadToolBoxDocumentHandler : public: inline void free() { - ToolBoxHashMap().swap( *this ); + ToolBoxHashMap().swap( *this );// get rid of reserved capacity } }; |