diff options
author | Alexander Wilms <f.alexander.wilms@gmail.com> | 2014-02-22 21:20:15 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-23 03:38:49 +0000 |
commit | 0ce0c369aa8880dff9fe874ba85ec6f52ee37ddf (patch) | |
tree | 5024cba9f9ea5e3b23ea26025323f6aef39488d0 /basic | |
parent | fdo#70414: Use correct target names for building Visual Studio projects. (diff) | |
download | core-0ce0c369aa8880dff9fe874ba85ec6f52ee37ddf.tar.gz core-0ce0c369aa8880dff9fe874ba85ec6f52ee37ddf.zip |
Remove unneccessary comments
Change-Id: I939160ae72fecbe3d4a60ce755730bd4c38497fb
Reviewed-on: https://gerrit.libreoffice.org/8182
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'basic')
-rw-r--r-- | basic/inc/sbstdobj.hxx | 8 | ||||
-rw-r--r-- | basic/source/basmgr/basicmanagerrepository.cxx | 46 | ||||
-rw-r--r-- | basic/source/basmgr/basmgr.cxx | 10 | ||||
-rw-r--r-- | basic/source/basmgr/vbahelper.cxx | 10 | ||||
-rw-r--r-- | basic/source/classes/propacc.cxx | 32 | ||||
-rw-r--r-- | basic/source/classes/sb.cxx | 8 | ||||
-rw-r--r-- | basic/source/classes/sbunoobj.cxx | 2 | ||||
-rw-r--r-- | basic/source/runtime/methods.cxx | 2 | ||||
-rw-r--r-- | basic/source/runtime/stdobj1.cxx | 8 | ||||
-rw-r--r-- | basic/source/uno/sbservices.cxx | 2 |
10 files changed, 60 insertions, 68 deletions
diff --git a/basic/inc/sbstdobj.hxx b/basic/inc/sbstdobj.hxx index 9bb855e81ae6..ad45eaa76eab 100644 --- a/basic/inc/sbstdobj.hxx +++ b/basic/inc/sbstdobj.hxx @@ -25,9 +25,7 @@ #include <basic/sbxfac.hxx> #include <basic/basicdllapi.h> -//-------------------- // class SbStdFactory -//-------------------- class BASIC_DLLPUBLIC SbStdFactory : public SbxFactory { public: @@ -36,9 +34,7 @@ public: virtual SbxObject* CreateObject( const OUString& rClassName ); }; -//-------------------- // class SbStdPicture -//-------------------- class BASIC_DLLPUBLIC SbStdPicture : public SbxObject { protected: @@ -62,9 +58,7 @@ public: void SetGraphic( const Graphic& rGrf ) { aGraphic = rGrf; } }; -//----------------- // class SbStdFont -//----------------- class BASIC_DLLPUBLIC SbStdFont : public SbxObject { protected: @@ -106,9 +100,7 @@ public: OUString GetFontName() const { return aName; } }; -//---------------------- // class SbStdClipboard -//---------------------- class BASIC_DLLPUBLIC SbStdClipboard : public SbxObject { protected: diff --git a/basic/source/basmgr/basicmanagerrepository.cxx b/basic/source/basmgr/basicmanagerrepository.cxx index 4aece49a21c5..0e483d698177 100644 --- a/basic/source/basmgr/basicmanagerrepository.cxx +++ b/basic/source/basmgr/basicmanagerrepository.cxx @@ -223,19 +223,19 @@ namespace basic //==================================================================== //= ImplRepository //==================================================================== - //-------------------------------------------------------------------- + ImplRepository::ImplRepository() { } - //-------------------------------------------------------------------- + ImplRepository& ImplRepository::Instance() { return *rtl_Instance< ImplRepository, CreateImplRepository, ::osl::MutexGuard, ::osl::GetGlobalMutex >:: create( CreateImplRepository(), ::osl::GetGlobalMutex() ); } - //-------------------------------------------------------------------- + BasicManager* ImplRepository::getDocumentBasicManager( const Reference< XModel >& _rxDocumentModel ) { ::osl::MutexGuard aGuard( m_aMutex ); @@ -255,7 +255,7 @@ namespace basic return pBasicManager; } - //-------------------------------------------------------------------- + BasicManager* ImplRepository::getApplicationBasicManager( bool _bCreate ) { ::osl::MutexGuard aGuard( m_aMutex ); @@ -267,7 +267,7 @@ namespace basic return pAppManager; } - //-------------------------------------------------------------------- + void ImplRepository::setApplicationBasicManager( BasicManager* _pBasicManager ) { ::osl::MutexGuard aGuard( m_aMutex ); @@ -278,7 +278,7 @@ namespace basic GetSbData()->pAppBasMgr = _pBasicManager; } - //-------------------------------------------------------------------- + BasicManager* ImplRepository::impl_createApplicationBasicManager() { ::osl::MutexGuard aGuard( m_aMutex ); @@ -337,14 +337,14 @@ namespace basic return pBasicManager; } - //-------------------------------------------------------------------- + void ImplRepository::registerCreationListener( BasicManagerCreationListener& _rListener ) { ::osl::MutexGuard aGuard( m_aMutex ); m_aCreationListeners.push_back( &_rListener ); } - //-------------------------------------------------------------------- + void ImplRepository::revokeCreationListener( BasicManagerCreationListener& _rListener ) { ::osl::MutexGuard aGuard( m_aMutex ); @@ -356,7 +356,7 @@ namespace basic } } - //-------------------------------------------------------------------- + void ImplRepository::impl_notifyCreationListeners( const Reference< XModel >& _rxDocumentModel, BasicManager& _rManager ) { for ( CreationListeners::const_iterator loop = m_aCreationListeners.begin(); @@ -368,7 +368,7 @@ namespace basic } } - //-------------------------------------------------------------------- + StarBASIC* ImplRepository::impl_getDefaultAppBasicLibrary() { BasicManager* pAppManager = getApplicationBasicManager( true ); @@ -378,7 +378,7 @@ namespace basic return pAppBasic; } - //-------------------------------------------------------------------- + BasicManagerPointer& ImplRepository::impl_getLocationForModel( const Reference< XModel >& _rxDocumentModel ) { DBG_ASSERT( _rxDocumentModel.is(), "ImplRepository::impl_getLocationForModel: invalid model!" ); @@ -387,7 +387,7 @@ namespace basic return location; } - //-------------------------------------------------------------------- + void ImplRepository::impl_initDocLibraryContainers_nothrow( const Reference< XPersistentLibraryContainer >& _rxBasicLibraries, const Reference< XPersistentLibraryContainer >& _rxDialogLibraries ) { OSL_PRECOND( _rxBasicLibraries.is() && _rxDialogLibraries.is(), @@ -413,7 +413,7 @@ namespace basic } } - //-------------------------------------------------------------------- + void ImplRepository::impl_createManagerForModel( BasicManagerPointer& _out_rpBasicManager, const Reference< XModel >& _rxDocumentModel ) { StarBASIC* pAppBasic = impl_getDefaultAppBasicLibrary(); @@ -502,7 +502,7 @@ namespace basic } - //-------------------------------------------------------------------- + bool ImplRepository::impl_getDocumentStorage_nothrow( const Reference< XModel >& _rxDocument, Reference< XStorage >& _out_rStorage ) { _out_rStorage.clear(); @@ -519,7 +519,7 @@ namespace basic return true; } - //-------------------------------------------------------------------- + bool ImplRepository::impl_getDocumentLibraryContainers_nothrow( const Reference< XModel >& _rxDocument, Reference< XPersistentLibraryContainer >& _out_rxBasicLibraries, Reference< XPersistentLibraryContainer >& _out_rxDialogLibraries ) { @@ -538,7 +538,7 @@ namespace basic return _out_rxBasicLibraries.is() && _out_rxDialogLibraries.is(); } - //-------------------------------------------------------------------- + void ImplRepository::impl_removeFromRepository( BasicManagerStore::iterator _pos ) { OSL_PRECOND( _pos != m_aStore.end(), "ImplRepository::impl_removeFromRepository: invalid position!" ); @@ -553,7 +553,7 @@ namespace basic BasicManagerCleaner::deleteBasicManager( pManager ); } - //-------------------------------------------------------------------- + void ImplRepository::_disposing( const ::com::sun::star::lang::EventObject& _rSource ) { ::osl::MutexGuard aGuard( m_aMutex ); @@ -581,7 +581,7 @@ namespace basic OSL_ENSURE( bFound, "ImplRepository::_disposing: where does this come from?" ); } - //-------------------------------------------------------------------- + void ImplRepository::Notify( SfxBroadcaster& _rBC, const SfxHint& _rHint ) { const SfxSimpleHint* pSimpleHint = dynamic_cast< const SfxSimpleHint* >( &_rHint ); @@ -612,31 +612,31 @@ namespace basic //==================================================================== //= BasicManagerRepository //==================================================================== - //-------------------------------------------------------------------- + BasicManager* BasicManagerRepository::getDocumentBasicManager( const Reference< XModel >& _rxDocumentModel ) { return ImplRepository::Instance().getDocumentBasicManager( _rxDocumentModel ); } - //-------------------------------------------------------------------- + BasicManager* BasicManagerRepository::getApplicationBasicManager( bool _bCreate ) { return ImplRepository::Instance().getApplicationBasicManager( _bCreate ); } - //-------------------------------------------------------------------- + void BasicManagerRepository::resetApplicationBasicManager() { return ImplRepository::Instance().setApplicationBasicManager( NULL ); } - //-------------------------------------------------------------------- + void BasicManagerRepository::registerCreationListener( BasicManagerCreationListener& _rListener ) { ImplRepository::Instance().registerCreationListener( _rListener ); } - //-------------------------------------------------------------------- + void BasicManagerRepository::revokeCreationListener( BasicManagerCreationListener& _rListener ) { ImplRepository::Instance().revokeCreationListener( _rListener ); diff --git a/basic/source/basmgr/basmgr.cxx b/basic/source/basmgr/basmgr.cxx index 620deb98e740..c7c4bd48c189 100644 --- a/basic/source/basmgr/basmgr.cxx +++ b/basic/source/basmgr/basmgr.cxx @@ -104,7 +104,7 @@ DBG_NAME( BasicManager ); StreamMode eStreamReadMode = STREAM_READ | STREAM_NOCREATE | STREAM_SHARE_DENYALL; StreamMode eStorageReadMode = STREAM_READ | STREAM_SHARE_DENYWRITE; -//---------------------------------------------------------------------------- + // BasicManager impl data struct BasicManagerImpl { @@ -242,7 +242,7 @@ void BasMgrContainerListenerImpl::addLibraryModulesImpl( BasicManager* pMgr, // XEventListener -//---------------------------------------------------------------------------- + void SAL_CALL BasMgrContainerListenerImpl::disposing( const lang::EventObject& Source ) throw( uno::RuntimeException ) @@ -251,7 +251,7 @@ void SAL_CALL BasMgrContainerListenerImpl::disposing( const lang::EventObject& S } // XContainerListener -//---------------------------------------------------------------------------- + void SAL_CALL BasMgrContainerListenerImpl::elementInserted( const container::ContainerEvent& Event ) throw( uno::RuntimeException ) @@ -298,7 +298,7 @@ void SAL_CALL BasMgrContainerListenerImpl::elementInserted( const container::Con } } -//---------------------------------------------------------------------------- + void SAL_CALL BasMgrContainerListenerImpl::elementReplaced( const container::ContainerEvent& Event ) throw( uno::RuntimeException ) @@ -328,7 +328,7 @@ void SAL_CALL BasMgrContainerListenerImpl::elementReplaced( const container::Con } } -//---------------------------------------------------------------------------- + void SAL_CALL BasMgrContainerListenerImpl::elementRemoved( const container::ContainerEvent& Event ) throw( uno::RuntimeException ) diff --git a/basic/source/basmgr/vbahelper.cxx b/basic/source/basmgr/vbahelper.cxx index 8f870bb143d4..d9dfaa9a9dc7 100644 --- a/basic/source/basmgr/vbahelper.cxx +++ b/basic/source/basmgr/vbahelper.cxx @@ -48,7 +48,7 @@ uno::Reference< frame::XModuleManager2 > lclCreateModuleManager() return frame::ModuleManager::create(xContext); } -// ---------------------------------------------------------------------------- + /** Implementation of an enumeration of all open documents of the same type. */ @@ -98,7 +98,7 @@ uno::Any SAL_CALL DocumentsEnumeration::nextElement() throw (container::NoSuchEl return uno::Any( *maModelIt++ ); } -// ---------------------------------------------------------------------------- + /** Locks or unlocks the controllers of the specified document model. */ @@ -116,7 +116,7 @@ void lclLockControllers( const uno::Reference< frame::XModel >& rxModel, sal_Boo } } -// ---------------------------------------------------------------------------- + /** Enables or disables the container windows of all controllers of the specified document model. @@ -147,7 +147,7 @@ void lclEnableContainerWindows( const uno::Reference< frame::XModel >& rxModel, } } -// ---------------------------------------------------------------------------- + typedef void (*ModifyDocumentFunc)( const uno::Reference< frame::XModel >&, sal_Bool ); @@ -168,7 +168,7 @@ void lclIterateDocuments( ModifyDocumentFunc pModifyDocumentFunc, const uno::Ref } } -// ---------------------------------------------------------------------------- + struct CurrDirPool { diff --git a/basic/source/classes/propacc.cxx b/basic/source/classes/propacc.cxx index f7414782141b..9f00c8d6dbde 100644 --- a/basic/source/classes/propacc.cxx +++ b/basic/source/classes/propacc.cxx @@ -57,20 +57,20 @@ extern "C" int SAL_CALL SbCompare_UString_Property_Impl( const void *arg1, const return pArg1->compareTo( pArg2->Name ); } -//---------------------------------------------------------------------------- + SbPropertyValues::SbPropertyValues() { } -//---------------------------------------------------------------------------- + SbPropertyValues::~SbPropertyValues() { m_xInfo.clear(); } -//---------------------------------------------------------------------------- + Reference< XPropertySetInfo > SbPropertyValues::getPropertySetInfo(void) throw( RuntimeException ) { @@ -83,7 +83,7 @@ Reference< XPropertySetInfo > SbPropertyValues::getPropertySetInfo(void) throw( return m_xInfo; } -//------------------------------------------------------------------------- + size_t SbPropertyValues::GetIndex_Impl( const OUString &rPropName ) const { @@ -99,7 +99,7 @@ size_t SbPropertyValues::GetIndex_Impl( const OUString &rPropName ) const return it - m_aPropVals.begin(); } -//---------------------------------------------------------------------------- + void SbPropertyValues::setPropertyValue( const OUString& aPropertyName, @@ -115,7 +115,7 @@ void SbPropertyValues::setPropertyValue( rPropVal.Value = aValue; } -//---------------------------------------------------------------------------- + Any SbPropertyValues::getPropertyValue( const OUString& aPropertyName) @@ -127,7 +127,7 @@ Any SbPropertyValues::getPropertyValue( return m_aPropVals[nIndex].Value; } -//---------------------------------------------------------------------------- + void SbPropertyValues::addPropertyChangeListener( const OUString& aPropertyName, @@ -137,7 +137,7 @@ void SbPropertyValues::addPropertyChangeListener( (void)aPropertyName; } -//---------------------------------------------------------------------------- + void SbPropertyValues::removePropertyChangeListener( const OUString& aPropertyName, @@ -147,7 +147,7 @@ void SbPropertyValues::removePropertyChangeListener( (void)aPropertyName; } -//---------------------------------------------------------------------------- + void SbPropertyValues::addVetoableChangeListener( const OUString& aPropertyName, @@ -157,7 +157,7 @@ void SbPropertyValues::addVetoableChangeListener( (void)aPropertyName; } -//---------------------------------------------------------------------------- + void SbPropertyValues::removeVetoableChangeListener( const OUString& aPropertyName, @@ -167,7 +167,7 @@ void SbPropertyValues::removeVetoableChangeListener( (void)aPropertyName; } -//---------------------------------------------------------------------------- + Sequence< PropertyValue > SbPropertyValues::getPropertyValues(void) throw (::com::sun::star::uno::RuntimeException) { @@ -177,7 +177,7 @@ Sequence< PropertyValue > SbPropertyValues::getPropertyValues(void) throw (::com return aRet; } -//---------------------------------------------------------------------------- + void SbPropertyValues::setPropertyValues(const Sequence< PropertyValue >& rPropertyValues ) throw (::com::sun::star::beans::UnknownPropertyException, @@ -234,7 +234,7 @@ sal_Bool PropertySetInfoImpl::hasPropertyByName(const OUString& Name) throw( Run } -//---------------------------------------------------------------------------- + SbPropertySetInfo::SbPropertySetInfo( const SbPropertyValueArr_Impl &rPropVals ) { @@ -250,13 +250,13 @@ SbPropertySetInfo::SbPropertySetInfo( const SbPropertyValueArr_Impl &rPropVals ) } } -//---------------------------------------------------------------------------- + SbPropertySetInfo::~SbPropertySetInfo() { } -//------------------------------------------------------------------------- + Sequence< Property > SbPropertySetInfo::getProperties(void) throw( RuntimeException ) { @@ -275,7 +275,7 @@ sal_Bool SbPropertySetInfo::hasPropertyByName(const OUString& Name) return aImpl.hasPropertyByName( Name ); } -//---------------------------------------------------------------------------- + void RTL_Impl_CreatePropertySet( StarBASIC* pBasic, SbxArray& rPar, sal_Bool bWrite ) { diff --git a/basic/source/classes/sb.cxx b/basic/source/classes/sb.cxx index cbbe3ca50ea8..5d9a6f858f4b 100644 --- a/basic/source/classes/sb.cxx +++ b/basic/source/classes/sb.cxx @@ -91,7 +91,7 @@ private: bool mbDisposed; }; -// ---------------------------------------------------------------------------- + DocBasicItem::DocBasicItem( StarBASIC& rDocBasic ) : mrDocBasic( rDocBasic ), @@ -151,7 +151,7 @@ void SAL_CALL DocBasicItem::disposing( const lang::EventObject& /*rEvent*/ ) thr stopListening(); } -// ---------------------------------------------------------------------------- + namespace { @@ -1614,7 +1614,7 @@ void StarBASIC::SetErrorData( SbError nCode, sal_uInt16 nLine, aGlobals.nCol2 = nCol2; } -//---------------------------------------------------------------- + // help class for access to string SubResource of a Resource. // Source: sfx2\source\doc\docfile.cxx (TLX) struct BasicStringList_Impl : private Resource @@ -1629,7 +1629,7 @@ struct BasicStringList_Impl : private Resource sal_Bool IsErrorTextAvailable( void ) { return IsAvailableRes(aResId.SetRT(RSC_STRING)); } }; -//---------------------------------------------------------------- + void StarBASIC::MakeErrorText( SbError nId, const OUString& aMsg ) { diff --git a/basic/source/classes/sbunoobj.cxx b/basic/source/classes/sbunoobj.cxx index 88574041a4bd..8e8c2aac9af3 100644 --- a/basic/source/classes/sbunoobj.cxx +++ b/basic/source/classes/sbunoobj.cxx @@ -4053,7 +4053,7 @@ Reference< XInterface > createAllListenerAdapter } -//-------------------------------------------------------------------------------------------------- + // InvocationToAllListenerMapper InvocationToAllListenerMapper::InvocationToAllListenerMapper ( const Reference< XIdlClass >& ListenerType, const Reference< XAllListener >& AllListener, const Any& Helper ) diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx index 9f74c798efb2..04ee05998844 100644 --- a/basic/source/runtime/methods.cxx +++ b/basic/source/runtime/methods.cxx @@ -4525,7 +4525,7 @@ RTLFUNC(SavePicture) } -//----------------------------------------------------------------------------------------- + RTLFUNC(MsgBox) { diff --git a/basic/source/runtime/stdobj1.cxx b/basic/source/runtime/stdobj1.cxx index 629470f3bc01..c0dc04f73b24 100644 --- a/basic/source/runtime/stdobj1.cxx +++ b/basic/source/runtime/stdobj1.cxx @@ -40,7 +40,7 @@ #define METH_SETDATA 24 #define METH_SETTEXT 25 -//------------------------------------------------------------------------------ + SbStdFactory::SbStdFactory() { } @@ -55,7 +55,7 @@ SbxObject* SbStdFactory::CreateObject( const OUString& rClassName ) return NULL; } -//------------------------------------------------------------------------------ + @@ -171,7 +171,7 @@ void SbStdPicture::SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId& rBCType, } } -//----------------------------------------------------------------------------- + void SbStdFont::PropBold( SbxVariable* pVar, SbxArray*, sal_Bool bWrite ) { @@ -300,7 +300,7 @@ void SbStdFont::SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId& rBCType, } -//----------------------------------------------------------------------------- + void SbStdClipboard::MethClear( SbxVariable*, SbxArray* pPar_, sal_Bool ) diff --git a/basic/source/uno/sbservices.cxx b/basic/source/uno/sbservices.cxx index 2331a23f6e25..6c3478b8435c 100644 --- a/basic/source/uno/sbservices.cxx +++ b/basic/source/uno/sbservices.cxx @@ -24,7 +24,7 @@ namespace basic { //........................................................................ - //-------------------------------------------------------------------- + extern void createRegistryInfo_SfxDialogLibraryContainer(); extern void createRegistryInfo_SfxScriptLibraryContainer(); |