summaryrefslogtreecommitdiff
path: root/framework/inc/uifactory
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-15 15:30:09 +0200
committerNoel Grandin <noel@peralex.com>2014-08-18 11:07:31 +0200
commit3b6091ca42cd2d9f230e7d81648c34f3d7085107 (patch)
tree6bc9e56e46bfabd7e03915a307bbce675536a98a /framework/inc/uifactory
parenta51c423743835793bf132c925ad962283fd2dc22 (diff)
document the swap-on-free idiom usage
Effective C++, item 17 Change-Id: I5c6f20c9631f1ca86b481a56ef08d578a7addbad
Diffstat (limited to 'framework/inc/uifactory')
-rw-r--r--framework/inc/uifactory/configurationaccessfactorymanager.hxx2
-rw-r--r--framework/inc/uifactory/factoryconfiguration.hxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/framework/inc/uifactory/configurationaccessfactorymanager.hxx b/framework/inc/uifactory/configurationaccessfactorymanager.hxx
index 5d6ad0a76072..b4f9afe7c98b 100644
--- a/framework/inc/uifactory/configurationaccessfactorymanager.hxx
+++ b/framework/inc/uifactory/configurationaccessfactorymanager.hxx
@@ -63,7 +63,7 @@ namespace framework {
{
inline void free()
{
- FactoryManagerMap().swap( *this );
+ FactoryManagerMap().swap( *this );// get rid of reserved capacity
}
};
diff --git a/framework/inc/uifactory/factoryconfiguration.hxx b/framework/inc/uifactory/factoryconfiguration.hxx
index 8360f8b09a46..2df76a283503 100644
--- a/framework/inc/uifactory/factoryconfiguration.hxx
+++ b/framework/inc/uifactory/factoryconfiguration.hxx
@@ -80,7 +80,7 @@ private:
{
inline void free()
{
- MenuControllerMap().swap( *this );
+ MenuControllerMap().swap( *this );// get rid of reserved capacity
}
};