diff options
author | Caolán McNamara <caolanm@redhat.com> | 2010-10-19 08:52:55 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-10-19 11:56:57 +0100 |
commit | 9591852ccaf91fa033c44b4d672ec152d7e470fa (patch) | |
tree | ecdd1266c6b410790aefd12c24cef20a715f2f3d /configmgr/source | |
parent | ae635c1eda512ad4e2d2f9181d6118654ff77e70 (diff) |
don't set singletonCreated before possible throws
Diffstat (limited to 'configmgr/source')
-rw-r--r-- | configmgr/source/components.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configmgr/source/components.cxx b/configmgr/source/components.cxx index ae0da5f759d6..f76f020089ae 100644 --- a/configmgr/source/components.cxx +++ b/configmgr/source/components.cxx @@ -154,9 +154,9 @@ void Components::initSingleton( { OSL_ASSERT(context.is()); if (!singletonCreated) { - singletonCreated = true; static Components theSingleton(context); singleton = &theSingleton; + singletonCreated = true; } } |