diff options
author | npower Developer <npower@openoffice.org> | 2010-04-19 11:02:13 +0100 |
---|---|---|
committer | npower Developer <npower@openoffice.org> | 2010-04-19 11:02:13 +0100 |
commit | 7780dbea502bce290f94c8fe357566d45509ff55 (patch) | |
tree | 258ebf30c7958d50601dd791f972e084db7b2555 /basctl/source/basicide/scriptdocument.cxx | |
parent | d17f9a78f7eec405bca5c5e5707f2bf222a04d87 (diff) |
npower13_objectmodules: fold in review comment ( about making lcl_getObjectName & lcl_getModuleType 'real' methods of a helper for basctl)
Diffstat (limited to 'basctl/source/basicide/scriptdocument.cxx')
-rw-r--r-- | basctl/source/basicide/scriptdocument.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/basctl/source/basicide/scriptdocument.cxx b/basctl/source/basicide/scriptdocument.cxx index 6d175674a63d..a8c6d24a3ff5 100644 --- a/basctl/source/basicide/scriptdocument.cxx +++ b/basctl/source/basicide/scriptdocument.cxx @@ -691,7 +691,7 @@ namespace basctl } // insert element by new name in container - if ( _eType == E_SCRIPTS ) + else if ( _eType == E_SCRIPTS ) { Reference< XVBAModuleInfo > xVBAModuleInfo( xLib, UNO_QUERY ); if ( xVBAModuleInfo->hasModuleInfo( _rOldName ) ) @@ -765,7 +765,7 @@ namespace basctl Reference< XNameContainer > xLib( getOrCreateLibrary( E_SCRIPTS, _rLibName ), UNO_QUERY_THROW ); if ( !xLib->hasByName( _rModName ) ) return false; - xLib->replaceByName( _rModName, makeAny( _rModuleCode ) ); + xLib->replaceByName( _rModName, makeAny( _rModuleCode ) ); return true; } catch( const Exception& ) |