From 22f9f08946343b7e08f48549e06e0e0188dabe5f Mon Sep 17 00:00:00 2001
From: Markus Frank <markus.frank@cern.ch>
Date: Tue, 26 Aug 2014 07:35:21 +0000
Subject: [PATCH] Fix LCDD el-mag. field converter

---
 DDCore/src/plugins/LCDDConverter.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/DDCore/src/plugins/LCDDConverter.cpp b/DDCore/src/plugins/LCDDConverter.cpp
index b96161768..439e69739 100644
--- a/DDCore/src/plugins/LCDDConverter.cpp
+++ b/DDCore/src/plugins/LCDDConverter.cpp
@@ -945,12 +945,12 @@ xml_h LCDDConverter::handleField(const std::string& /* name */, OverlayedField f
     string type = f->GetTitle();
     field = xml_elt_t(geo.doc, Unicode(type));
     field.setAttr(_U(name), f->GetName());
-    fld = PluginService::Create<TNamed*>(type + "_Convert2LCDD", &m_lcdd, &field, &fld);
+    fld = PluginService::Create<NamedObject*>(type + "_Convert2LCDD", &m_lcdd, &field, &fld);
     cout << "++ " << (fld.isValid() ? "Converted" : "FAILED    to convert ") << " electromagnetic field:" << f->GetName()
         << " of type " << type << endl;
     if (!fld.isValid()) {
       PluginDebug dbg;
-      PluginService::Create<TNamed*>(type + "_Convert2LCDD", &m_lcdd, &field, &fld);
+      PluginService::Create<NamedObject*>(type + "_Convert2LCDD", &m_lcdd, &field, &fld);
       throw runtime_error(
           "Failed to locate plugin to convert electromagnetic field:" + string(f->GetName()) + " of type " + type + ". "
               + dbg.missingFactory(type));
-- 
GitLab