aboutsummaryrefslogtreecommitdiffstats
path: root/src/textPartFactory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/textPartFactory.cpp')
-rw-r--r--src/textPartFactory.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/textPartFactory.cpp b/src/textPartFactory.cpp
index 0d588d9c..bfc2fa64 100644
--- a/src/textPartFactory.cpp
+++ b/src/textPartFactory.cpp
@@ -42,6 +42,13 @@ textPartFactory::~textPartFactory()
}
+textPartFactory* textPartFactory::getInstance()
+{
+ static textPartFactory instance;
+ return (&instance);
+}
+
+
textPart* textPartFactory::create(const mediaType& type)
{
NameMap::const_iterator pos = m_nameMap.find(type.generate());