summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
Diffstat (limited to 'scripting')
-rw-r--r--scripting/source/provider/ActiveMSPList.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/scripting/source/provider/ActiveMSPList.cxx b/scripting/source/provider/ActiveMSPList.cxx
index 4333f78ae3e1..fbd2b2b05331 100644
--- a/scripting/source/provider/ActiveMSPList.cxx
+++ b/scripting/source/provider/ActiveMSPList.cxx
@@ -67,12 +67,10 @@ public:
namespace
{
- //thread-safe double-locked class to ensure createNonDocMSPs is called once
- class theNonDocMSPCreator : public rtl::StaticWithArg<NonDocMSPCreator, ActiveMSPList*, theNonDocMSPCreator> {};
-
+ //thread-safe method to ensure createNonDocMSPs is called once
void ensureNonDocMSPs(ActiveMSPList *pList)
{
- theNonDocMSPCreator::get(pList);
+ static NonDocMSPCreator theCreator(pList);
}
}