diff options
Diffstat (limited to 'xmlscript/source/xmlmod_imexp')
-rw-r--r-- | xmlscript/source/xmlmod_imexp/imp_share.hxx | 3 | ||||
-rw-r--r-- | xmlscript/source/xmlmod_imexp/xmlmod_import.cxx | 7 |
2 files changed, 4 insertions, 6 deletions
diff --git a/xmlscript/source/xmlmod_imexp/imp_share.hxx b/xmlscript/source/xmlmod_imexp/imp_share.hxx index 6a1bede592fb..969a56d6d609 100644 --- a/xmlscript/source/xmlmod_imexp/imp_share.hxx +++ b/xmlscript/source/xmlmod_imexp/imp_share.hxx @@ -87,7 +87,6 @@ class ModuleElement { protected: rtl::Reference<ModuleImport> mxImport; - rtl::Reference<ModuleElement> mxParent; OUString _aLocalName; css::uno::Reference< css::xml::input::XAttributes > _xAttributes; @@ -97,7 +96,7 @@ public: ModuleElement( OUString const & rLocalName, css::uno::Reference< css::xml::input::XAttributes > const & xAttributes, - ModuleElement * pParent, ModuleImport * pImport ); + ModuleImport * pImport ); virtual ~ModuleElement(); // XElement diff --git a/xmlscript/source/xmlmod_imexp/xmlmod_import.cxx b/xmlscript/source/xmlmod_imexp/xmlmod_import.cxx index e9f9869ef6cf..cb562815d7c4 100644 --- a/xmlscript/source/xmlmod_imexp/xmlmod_import.cxx +++ b/xmlscript/source/xmlmod_imexp/xmlmod_import.cxx @@ -33,7 +33,7 @@ namespace xmlscript Reference< xml::input::XElement > ModuleElement::getParent() throw (RuntimeException, std::exception) { - return mxParent.get(); + return nullptr; } OUString ModuleElement::getLocalName() throw (RuntimeException, std::exception) @@ -87,9 +87,8 @@ Reference< xml::input::XElement > ModuleElement::startChildElement( ModuleElement::ModuleElement( OUString const & rLocalName, Reference< xml::input::XAttributes > const & xAttributes, - ModuleElement * pParent, ModuleImport * pImport ) + ModuleImport * pImport ) : mxImport( pImport ) - , mxParent( pParent ) , _aLocalName( rLocalName ) , _xAttributes( xAttributes ) { @@ -145,7 +144,7 @@ Reference< xml::input::XElement > ModuleImport::startRootElement( mrModuleDesc.aLanguage = xAttributes->getValueByUidName( XMLNS_SCRIPT_UID, "language" ); mrModuleDesc.aModuleType = xAttributes->getValueByUidName( XMLNS_SCRIPT_UID, "moduleType" ); - return new ModuleElement( rLocalName, xAttributes, nullptr, this ); + return new ModuleElement( rLocalName, xAttributes, this ); } else { |