0030773: Application Framework - To allow to inherit existing attributes to reuse...
[occt.git] / src / XmlMDF / XmlMDF_ADriver.cxx
index 85473ab..0d151ee 100644 (file)
@@ -31,7 +31,8 @@ IMPLEMENT_STANDARD_RTTIEXT(XmlMDF_ADriver,Standard_Transient)
 XmlMDF_ADriver::XmlMDF_ADriver (const Handle(Message_Messenger)& theMsgDriver,
                                 const Standard_CString           theNS,
                                 const Standard_CString           theName)
-     : myMessageDriver (theMsgDriver)
+: myNamespace(theNS == NULL ? "" : theNS),
+  myMessageDriver (theMsgDriver)
 {
   if (theNS != NULL)
     if (theNS[0] != '\0') {
@@ -73,4 +74,4 @@ const TCollection_AsciiString& XmlMDF_ADriver::TypeName () const
   if (myTypeName.Length() == 0 || aString [myTypeName.Length() - 1] == ':')
     (TCollection_AsciiString&)myTypeName += SourceType() -> Name();
   return myTypeName;
-}
\ No newline at end of file
+}