summaryrefslogtreecommitdiff
path: root/unotools/source/misc
diff options
context:
space:
mode:
authorAlexander Wilms <f.alexander.wilms@gmail.com>2014-02-22 21:20:15 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-02-23 03:38:49 +0000
commit0ce0c369aa8880dff9fe874ba85ec6f52ee37ddf (patch)
tree5024cba9f9ea5e3b23ea26025323f6aef39488d0 /unotools/source/misc
parentb81ac16e65b311d6e43c05c22c65d2040c9d7e04 (diff)
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 'unotools/source/misc')
-rw-r--r--unotools/source/misc/atom.cxx2
-rw-r--r--unotools/source/misc/closeveto.cxx14
-rw-r--r--unotools/source/misc/componentresmodule.cxx14
-rw-r--r--unotools/source/misc/datetime.cxx8
-rw-r--r--unotools/source/misc/desktopterminationobserver.cxx16
-rw-r--r--unotools/source/misc/eventlisteneradapter.cxx16
-rw-r--r--unotools/source/misc/fontdefs.cxx8
-rw-r--r--unotools/source/misc/mediadescriptor.cxx2
-rw-r--r--unotools/source/misc/sharedunocomponent.cxx22
-rw-r--r--unotools/source/misc/syslocale.cxx4
10 files changed, 53 insertions, 53 deletions
diff --git a/unotools/source/misc/atom.cxx b/unotools/source/misc/atom.cxx
index c6b04807a216..bbb53532c4af 100644
--- a/unotools/source/misc/atom.cxx
+++ b/unotools/source/misc/atom.cxx
@@ -54,7 +54,7 @@ const OUString& AtomProvider::getString( int nAtom ) const
return it == m_aStringMap.end() ? aEmpty : it->second;
}
-// -----------------------------------------------------------------------
+
MultiAtomProvider::MultiAtomProvider()
{
diff --git a/unotools/source/misc/closeveto.cxx b/unotools/source/misc/closeveto.cxx
index 24a084d96145..b645240cfee1 100644
--- a/unotools/source/misc/closeveto.cxx
+++ b/unotools/source/misc/closeveto.cxx
@@ -77,7 +77,7 @@ namespace utl
bool m_bHasOwnership;
};
- //------------------------------------------------------------------------------------------------------------------
+
void SAL_CALL CloseListener_Impl::queryClosing( const EventObject& i_source, ::sal_Bool i_deliverOwnership ) throw (CloseVetoException, RuntimeException)
{
(void)i_source;
@@ -88,13 +88,13 @@ namespace utl
throw CloseVetoException();
}
- //------------------------------------------------------------------------------------------------------------------
+
void SAL_CALL CloseListener_Impl::notifyClosing( const EventObject& i_source ) throw (RuntimeException)
{
(void)i_source;
}
- //------------------------------------------------------------------------------------------------------------------
+
void SAL_CALL CloseListener_Impl::disposing( const EventObject& i_source ) throw (RuntimeException)
{
(void)i_source;
@@ -114,7 +114,7 @@ namespace utl
//==================================================================================================================
namespace
{
- //--------------------------------------------------------------------------------------------------------------
+
void lcl_init( CloseVeto_Data& i_data, const Reference< XInterface >& i_closeable )
{
i_data.xCloseable.set( i_closeable, UNO_QUERY );
@@ -124,7 +124,7 @@ namespace utl
i_data.xCloseable->addCloseListener( i_data.pListener.get() );
}
- //--------------------------------------------------------------------------------------------------------------
+
void lcl_deinit( CloseVeto_Data& i_data )
{
if ( !i_data.xCloseable.is() )
@@ -149,14 +149,14 @@ namespace utl
//==================================================================================================================
//= CloseVeto
//==================================================================================================================
- //------------------------------------------------------------------------------------------------------------------
+
CloseVeto::CloseVeto( const Reference< XInterface >& i_closeable )
:m_pData( new CloseVeto_Data )
{
lcl_init( *m_pData, i_closeable );
}
- //------------------------------------------------------------------------------------------------------------------
+
CloseVeto::~CloseVeto()
{
lcl_deinit( *m_pData );
diff --git a/unotools/source/misc/componentresmodule.cxx b/unotools/source/misc/componentresmodule.cxx
index 14d572b9a1d2..101bf989ae62 100644
--- a/unotools/source/misc/componentresmodule.cxx
+++ b/unotools/source/misc/componentresmodule.cxx
@@ -69,14 +69,14 @@ namespace utl
OComponentResModuleImpl& operator=( const OComponentResModuleImpl& ); // never implemented
};
- //--------------------------------------------------------------------
+
void OComponentResModuleImpl::freeResManager()
{
delete m_pResources, m_pResources = NULL;
m_bInitialized = false;
}
- //--------------------------------------------------------------------
+
ResMgr* OComponentResModuleImpl::getResManager()
{
if ( !m_pResources && !m_bInitialized )
@@ -98,32 +98,32 @@ namespace utl
//====================================================================
//= OComponentResourceModule
//====================================================================
- //--------------------------------------------------------------------
+
OComponentResourceModule::OComponentResourceModule( const OString& _rResFilePrefix )
:BaseClass()
,m_pImpl( new OComponentResModuleImpl( _rResFilePrefix ) )
{
}
- //--------------------------------------------------------------------
+
OComponentResourceModule::~OComponentResourceModule()
{
}
- //-------------------------------------------------------------------------
+
ResMgr* OComponentResourceModule::getResManager()
{
::osl::MutexGuard aGuard( m_aMutex );
return m_pImpl->getResManager();
}
- //--------------------------------------------------------------------------
+
void OComponentResourceModule::onFirstClient()
{
BaseClass::onFirstClient();
}
- //--------------------------------------------------------------------------
+
void OComponentResourceModule::onLastClient()
{
m_pImpl->freeResManager();
diff --git a/unotools/source/misc/datetime.cxx b/unotools/source/misc/datetime.cxx
index af477672d1eb..176769d989cd 100644
--- a/unotools/source/misc/datetime.cxx
+++ b/unotools/source/misc/datetime.cxx
@@ -143,7 +143,7 @@ namespace
//.........................................................................
namespace utl
{
-//------------------------------------------------------------------
+
void typeConvert(const Date& _rDate, starutil::Date& _rOut)
{
_rOut.Day = _rDate.GetDay();
@@ -151,13 +151,13 @@ void typeConvert(const Date& _rDate, starutil::Date& _rOut)
_rOut.Year = _rDate.GetYear();
}
-//------------------------------------------------------------------
+
void typeConvert(const starutil::Date& _rDate, Date& _rOut)
{
_rOut = Date(_rDate.Day, _rDate.Month, _rDate.Year);
}
-//------------------------------------------------------------------
+
void typeConvert(const DateTime& _rDateTime, starutil::DateTime& _rOut)
{
_rOut.Year = _rDateTime.GetYear();
@@ -169,7 +169,7 @@ void typeConvert(const DateTime& _rDateTime, starutil::DateTime& _rOut)
_rOut.NanoSeconds = _rDateTime.GetNanoSec();
}
-//------------------------------------------------------------------
+
void typeConvert(const starutil::DateTime& _rDateTime, DateTime& _rOut)
{
Date aDate(_rDateTime.Day, _rDateTime.Month, _rDateTime.Year);
diff --git a/unotools/source/misc/desktopterminationobserver.cxx b/unotools/source/misc/desktopterminationobserver.cxx
index 1aa7b32c0aca..55901ebc310f 100644
--- a/unotools/source/misc/desktopterminationobserver.cxx
+++ b/unotools/source/misc/desktopterminationobserver.cxx
@@ -77,17 +77,17 @@ namespace utl
virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw (::com::sun::star::uno::RuntimeException);
};
- //--------------------------------------------------------------------
+
OObserverImpl::OObserverImpl()
{
}
- //--------------------------------------------------------------------
+
OObserverImpl::~OObserverImpl()
{
}
- //--------------------------------------------------------------------
+
void OObserverImpl::ensureObservation()
{
{
@@ -111,7 +111,7 @@ namespace utl
}
}
- //--------------------------------------------------------------------
+
void SAL_CALL OObserverImpl::queryTermination( const EventObject& /*Event*/ ) throw (TerminationVetoException, RuntimeException)
{
Listeners aToNotify;
@@ -130,7 +130,7 @@ namespace utl
}
}
- //--------------------------------------------------------------------
+
void SAL_CALL OObserverImpl::notifyTermination( const EventObject& /*Event*/ ) throw (RuntimeException)
{
// get the listeners
@@ -158,7 +158,7 @@ namespace utl
}
}
- //--------------------------------------------------------------------
+
void SAL_CALL OObserverImpl::disposing( const EventObject& /*Event*/ ) throw (RuntimeException)
{
#if OSL_DEBUG_LEVEL > 0
@@ -172,7 +172,7 @@ namespace utl
//====================================================================
//= DesktopTerminationObserver
//====================================================================
- //--------------------------------------------------------------------
+
void DesktopTerminationObserver::registerTerminationListener( ITerminationListener* _pListener )
{
if ( !_pListener )
@@ -192,7 +192,7 @@ namespace utl
OObserverImpl::ensureObservation();
}
- //--------------------------------------------------------------------
+
void DesktopTerminationObserver::revokeTerminationListener( ITerminationListener* _pListener )
{
::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
diff --git a/unotools/source/misc/eventlisteneradapter.cxx b/unotools/source/misc/eventlisteneradapter.cxx
index 61b4257d4576..d9446d59ba58 100644
--- a/unotools/source/misc/eventlisteneradapter.cxx
+++ b/unotools/source/misc/eventlisteneradapter.cxx
@@ -55,7 +55,7 @@ namespace utl
virtual void SAL_CALL disposing( const EventObject& _rSource ) throw (RuntimeException);
};
- //---------------------------------------------------------------------
+
OEventListenerImpl::OEventListenerImpl( OEventListenerAdapter* _pAdapter, const Reference< XComponent >& _rxComp )
:m_pAdapter(_pAdapter)
{
@@ -72,7 +72,7 @@ namespace utl
m_xKeepMeAlive = xMeMyselfAndI;
}
- //---------------------------------------------------------------------
+
void OEventListenerImpl::dispose()
{
if (m_xComponent.is())
@@ -83,7 +83,7 @@ namespace utl
}
}
- //---------------------------------------------------------------------
+
void SAL_CALL OEventListenerImpl::disposing( const EventObject& _rSource ) throw (RuntimeException)
{
Reference< XEventListener > xDeleteUponLeaving = m_xKeepMeAlive;
@@ -105,13 +105,13 @@ namespace utl
//=====================================================================
//= OEventListenerAdapter
//=====================================================================
- //---------------------------------------------------------------------
+
OEventListenerAdapter::OEventListenerAdapter()
:m_pImpl(new OEventListenerAdapterImpl)
{
}
- //---------------------------------------------------------------------
+
OEventListenerAdapter::~OEventListenerAdapter()
{
stopAllComponentListening( );
@@ -119,7 +119,7 @@ namespace utl
m_pImpl = NULL;
}
- //---------------------------------------------------------------------
+
void OEventListenerAdapter::stopComponentListening( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent >& _rxComp )
{
if ( m_pImpl->aListeners.empty() )
@@ -141,7 +141,7 @@ namespace utl
while ( dispose != m_pImpl->aListeners.end() );
}
- //---------------------------------------------------------------------
+
void OEventListenerAdapter::stopAllComponentListening( )
{
for ( ::std::vector< void* >::const_iterator aDisposeLoop = m_pImpl->aListeners.begin();
@@ -156,7 +156,7 @@ namespace utl
m_pImpl->aListeners.clear();
}
- //---------------------------------------------------------------------
+
void OEventListenerAdapter::startComponentListening( const Reference< XComponent >& _rxComp )
{
if (!_rxComp.is())
diff --git a/unotools/source/misc/fontdefs.cxx b/unotools/source/misc/fontdefs.cxx
index cdb8bd6568c6..489374eb44a7 100644
--- a/unotools/source/misc/fontdefs.cxx
+++ b/unotools/source/misc/fontdefs.cxx
@@ -320,7 +320,7 @@ static ImplLocalizedFontName aImplLocalizedNamesList[] =
{ NULL, NULL },
};
-// -----------------------------------------------------------------------
+
void GetEnglishSearchFontName( OUString& rName )
{
@@ -442,7 +442,7 @@ void GetEnglishSearchFontName( OUString& rName )
}
}
-// -----------------------------------------------------------------------
+
OUString GetNextFontToken( const OUString& rTokenStr, sal_Int32& rIndex )
{
@@ -505,7 +505,7 @@ static bool ImplIsFontToken( const OUString& rName, const OUString& rToken )
return false;
}
-// -----------------------------------------------------------------------
+
static void ImplAppendFontToken( OUString& rName, const OUString& rNewToken )
{
@@ -578,7 +578,7 @@ OUString GetSubsFontName( const OUString& rName, sal_uLong nFlags )
return aName;
}
-// -----------------------------------------------------------------------
+
// TODO: use a more generic String hash
int FontNameHash::operator()( const OUString& rStr ) const
diff --git a/unotools/source/misc/mediadescriptor.cxx b/unotools/source/misc/mediadescriptor.cxx
index 8014c978d82e..e934bf3561f3 100644
--- a/unotools/source/misc/mediadescriptor.cxx
+++ b/unotools/source/misc/mediadescriptor.cxx
@@ -386,7 +386,7 @@ bool MediaDescriptor::isStreamReadOnly() const
return bReadOnly;
}
-// ----------------------------------------------------------------------------
+
css::uno::Any MediaDescriptor::getComponentDataEntry( const OUString& rName ) const
{
diff --git a/unotools/source/misc/sharedunocomponent.cxx b/unotools/source/misc/sharedunocomponent.cxx
index 8b75bdc9e5cc..626a8b5042c9 100644
--- a/unotools/source/misc/sharedunocomponent.cxx
+++ b/unotools/source/misc/sharedunocomponent.cxx
@@ -42,14 +42,14 @@ namespace utl
//========================================================================
//= DisposableComponent
//========================================================================
- //------------------------------------------------------------------------
+
DisposableComponent::DisposableComponent( const Reference< XInterface >& _rxComponent )
:m_xComponent( _rxComponent, UNO_QUERY )
{
DBG_ASSERT( m_xComponent.is() || !_rxComponent.is(), "DisposableComponent::DisposableComponent: should be an XComponent!" );
}
- //------------------------------------------------------------------------
+
DisposableComponent::~DisposableComponent()
{
if ( m_xComponent.is() )
@@ -113,7 +113,7 @@ namespace utl
CloseableComponentImpl& operator=( const CloseableComponentImpl& ); // never implemented
};
- //------------------------------------------------------------------------
+
CloseableComponentImpl::CloseableComponentImpl( const Reference< XInterface >& _rxComponent )
:m_xCloseable( _rxComponent, UNO_QUERY )
{
@@ -121,14 +121,14 @@ namespace utl
DBG_ASSERT( m_xCloseable.is() || !_rxComponent.is(), "CloseableComponentImpl::CloseableComponentImpl: component is not an XCloseable!" );
impl_nf_switchListening( true );
}
- //------------------------------------------------------------------------
+
CloseableComponentImpl::~CloseableComponentImpl()
{
nf_closeComponent();
DBG_DTOR( CloseableComponentImpl, NULL );
}
- //------------------------------------------------------------------------
+
void CloseableComponentImpl::nf_closeComponent()
{
if ( !m_xCloseable.is() )
@@ -153,7 +153,7 @@ namespace utl
m_xCloseable.clear();
}
- //------------------------------------------------------------------------
+
void CloseableComponentImpl::impl_nf_switchListening( bool _bListen )
{
if ( !m_xCloseable.is() )
@@ -172,7 +172,7 @@ namespace utl
}
}
- //--------------------------------------------------------------------
+
void SAL_CALL CloseableComponentImpl::queryClosing( const EventObject&
#ifdef DBG_UTIL
Source
@@ -185,7 +185,7 @@ namespace utl
throw CloseVetoException();
}
- //--------------------------------------------------------------------
+
void SAL_CALL CloseableComponentImpl::notifyClosing( const EventObject&
#ifdef DBG_UTIL
Source
@@ -200,7 +200,7 @@ namespace utl
OSL_FAIL( "CloseableComponentImpl::notifyClosing: unreachable!" );
}
- //--------------------------------------------------------------------
+
void SAL_CALL CloseableComponentImpl::disposing( const EventObject&
#ifdef DBG_UTIL
Source
@@ -216,14 +216,14 @@ namespace utl
//= CloseableComponentImpl
//========================================================================
DBG_NAME( CloseableComponent )
- //------------------------------------------------------------------------
+
CloseableComponent::CloseableComponent( const Reference< XInterface >& _rxComponent )
:m_pImpl( new CloseableComponentImpl( _rxComponent ) )
{
DBG_CTOR( CloseableComponent, NULL );
}
- //------------------------------------------------------------------------
+
CloseableComponent::~CloseableComponent()
{
// close the component, deliver ownership to anybody who wants to veto the close
diff --git a/unotools/source/misc/syslocale.cxx b/unotools/source/misc/syslocale.cxx
index 9ff0fc47c068..863d88873c5b 100644
--- a/unotools/source/misc/syslocale.cxx
+++ b/unotools/source/misc/syslocale.cxx
@@ -52,7 +52,7 @@ private:
void setDateAcceptancePatternsConfig();
};
-// -----------------------------------------------------------------------
+
SvtSysLocale_Impl::SvtSysLocale_Impl() : pCharClass(NULL)
{
@@ -194,7 +194,7 @@ const LanguageTag& SvtSysLocale::GetUILanguageTag() const
return pImpl->aSysLocaleOptions.GetRealUILanguageTag();
}
-//------------------------------------------------------------------------
+
// static
rtl_TextEncoding SvtSysLocale::GetBestMimeEncoding()