summaryrefslogtreecommitdiff
path: root/sot
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 /sot
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 'sot')
-rw-r--r--sot/source/base/exchange.cxx4
-rw-r--r--sot/source/base/formats.cxx12
-rw-r--r--sot/source/sdstor/ucbstorage.cxx24
-rw-r--r--sot/source/unoolestorage/xolesimplestorage.cxx62
4 files changed, 51 insertions, 51 deletions
diff --git a/sot/source/base/exchange.cxx b/sot/source/base/exchange.cxx
index a2b6922c004d..bfd29d6d93d1 100644
--- a/sot/source/base/exchange.cxx
+++ b/sot/source/base/exchange.cxx
@@ -50,7 +50,7 @@ struct DataFlavorRepresentation
const ::com::sun::star::uno::Type* pType;
};
-// -----------------------------------------------------------------------------
+
namespace
{
@@ -212,7 +212,7 @@ namespace
const DataFlavorRepresentation, ImplFormatArray_Impl > {};
}
-//-----------------------------------------------------------------------
+
static tDataFlavorList& InitFormats_Impl()
{
diff --git a/sot/source/base/formats.cxx b/sot/source/base/formats.cxx
index c31304c53694..36716a348880 100644
--- a/sot/source/base/formats.cxx
+++ b/sot/source/base/formats.cxx
@@ -1294,9 +1294,9 @@ static SotDestinationEntry_Impl const aDestinationArray[] = \
-// ---------------------------------
+
// - new style GetExchange methods -
-// ---------------------------------
+
bool IsFormatSupported( const DataFlavorExVector& rDataFlavorExVector, sal_uLong nId )
{
@@ -1316,7 +1316,7 @@ bool IsFormatSupported( const DataFlavorExVector& rDataFlavorExVector, sal_uLong
return bRet;
}
-// -----------------------------------------------------------------------------
+
static bool CheckTransferableContext_Impl( const Reference< XTransferable >* pxTransferable, const SotAction_Impl& rEntry )
{
@@ -1378,7 +1378,7 @@ static bool CheckTransferableContext_Impl( const Reference< XTransferable >* pxT
return bRet;
}
-// -----------------------------------------------------------------------------
+
static sal_uInt16 GetTransferableAction_Impl(
const DataFlavorExVector& rDataFlavorExVector,
@@ -1465,7 +1465,7 @@ static sal_uInt16 GetTransferableAction_Impl(
return EXCHG_INOUT_ACTION_NONE;
}
-// -----------------------------------------------------------------------------
+
sal_uInt16 SotExchange::GetExchangeAction( const DataFlavorExVector& rDataFlavorExVector,
sal_uInt16 nDestination,
@@ -1579,7 +1579,7 @@ sal_uInt16 SotExchange::GetExchangeAction( const DataFlavorExVector& rDataFlavor
return nUserAction;
}
-// -----------------------------------------------------------------------------
+
sal_uInt16 SotExchange::IsChart( const SvGlobalName& rName )
{
diff --git a/sot/source/sdstor/ucbstorage.cxx b/sot/source/sdstor/ucbstorage.cxx
index f9fd6109d198..0eabb17b685e 100644
--- a/sot/source/sdstor/ucbstorage.cxx
+++ b/sot/source/sdstor/ucbstorage.cxx
@@ -105,7 +105,7 @@ protected:
void checkError();
};
-//------------------------------------------------------------------
+
FileStreamWrapper_Impl::FileStreamWrapper_Impl( const OUString& rName )
: m_aURL( rName )
, m_pSvStream(0)
@@ -113,7 +113,7 @@ FileStreamWrapper_Impl::FileStreamWrapper_Impl( const OUString& rName )
// if no URL is provided the stream is empty
}
-//------------------------------------------------------------------
+
FileStreamWrapper_Impl::~FileStreamWrapper_Impl()
{
if ( m_pSvStream )
@@ -128,7 +128,7 @@ FileStreamWrapper_Impl::~FileStreamWrapper_Impl()
::utl::UCBContentHelper::Kill( m_aURL );
}
-//------------------------------------------------------------------------------
+
sal_Int32 SAL_CALL FileStreamWrapper_Impl::readBytes(Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead)
throw( NotConnectedException, BufferSizeExceededException, RuntimeException )
{
@@ -157,7 +157,7 @@ sal_Int32 SAL_CALL FileStreamWrapper_Impl::readBytes(Sequence< sal_Int8 >& aData
return nRead;
}
-//------------------------------------------------------------------------------
+
sal_Int32 SAL_CALL FileStreamWrapper_Impl::readSomeBytes(Sequence< sal_Int8 >& aData, sal_Int32 nMaxBytesToRead) throw( NotConnectedException, BufferSizeExceededException, RuntimeException )
{
if ( m_aURL.isEmpty() )
@@ -180,7 +180,7 @@ sal_Int32 SAL_CALL FileStreamWrapper_Impl::readSomeBytes(Sequence< sal_Int8 >& a
return readBytes(aData, nMaxBytesToRead);
}
-//------------------------------------------------------------------------------
+
void SAL_CALL FileStreamWrapper_Impl::skipBytes(sal_Int32 nBytesToSkip) throw( NotConnectedException, BufferSizeExceededException, RuntimeException )
{
if ( m_aURL.isEmpty() )
@@ -193,7 +193,7 @@ void SAL_CALL FileStreamWrapper_Impl::skipBytes(sal_Int32 nBytesToSkip) throw( N
checkError();
}
-//------------------------------------------------------------------------------
+
sal_Int32 SAL_CALL FileStreamWrapper_Impl::available() throw( NotConnectedException, RuntimeException )
{
if ( m_aURL.isEmpty() )
@@ -215,7 +215,7 @@ sal_Int32 SAL_CALL FileStreamWrapper_Impl::available() throw( NotConnectedExcept
return nAvailable;
}
-//------------------------------------------------------------------------------
+
void SAL_CALL FileStreamWrapper_Impl::closeInput() throw( NotConnectedException, RuntimeException )
{
if ( m_aURL.isEmpty() )
@@ -231,7 +231,7 @@ void SAL_CALL FileStreamWrapper_Impl::closeInput() throw( NotConnectedException,
m_aURL = "";
}
-//------------------------------------------------------------------------------
+
void SAL_CALL FileStreamWrapper_Impl::seek( sal_Int64 _nLocation ) throw (IllegalArgumentException, IOException, RuntimeException)
{
if ( m_aURL.isEmpty() )
@@ -244,7 +244,7 @@ void SAL_CALL FileStreamWrapper_Impl::seek( sal_Int64 _nLocation ) throw (Illega
checkError();
}
-//------------------------------------------------------------------------------
+
sal_Int64 SAL_CALL FileStreamWrapper_Impl::getPosition( ) throw (IOException, RuntimeException)
{
if ( m_aURL.isEmpty() )
@@ -258,7 +258,7 @@ sal_Int64 SAL_CALL FileStreamWrapper_Impl::getPosition( ) throw (IOException, R
return (sal_Int64)nPos;
}
-//------------------------------------------------------------------------------
+
sal_Int64 SAL_CALL FileStreamWrapper_Impl::getLength( ) throw (IOException, RuntimeException)
{
if ( m_aURL.isEmpty() )
@@ -279,7 +279,7 @@ sal_Int64 SAL_CALL FileStreamWrapper_Impl::getLength( ) throw (IOException, Run
return (sal_Int64)nEndPos;
}
-//------------------------------------------------------------------------------
+
void FileStreamWrapper_Impl::checkConnected()
{
if ( m_aURL.isEmpty() )
@@ -293,7 +293,7 @@ void FileStreamWrapper_Impl::checkConnected()
}
}
-//------------------------------------------------------------------------------
+
void FileStreamWrapper_Impl::checkError()
{
checkConnected();
diff --git a/sot/source/unoolestorage/xolesimplestorage.cxx b/sot/source/unoolestorage/xolesimplestorage.cxx
index 1de814e0bcac..6fd2a1489dde 100644
--- a/sot/source/unoolestorage/xolesimplestorage.cxx
+++ b/sot/source/unoolestorage/xolesimplestorage.cxx
@@ -42,7 +42,7 @@ using namespace ::com::sun::star;
const sal_Int32 nBytesCount = 32000;
-// --------------------------------------------------------------------------------
+
OLESimpleStorage::OLESimpleStorage( uno::Reference< lang::XMultiServiceFactory > xFactory )
: m_bDisposed( false )
, m_pStream( NULL )
@@ -56,7 +56,7 @@ OLESimpleStorage::OLESimpleStorage( uno::Reference< lang::XMultiServiceFactory >
throw uno::RuntimeException();
}
-// --------------------------------------------------------------------------------
+
OLESimpleStorage::~OLESimpleStorage()
{
try {
@@ -72,7 +72,7 @@ OLESimpleStorage::~OLESimpleStorage()
}
}
-//-------------------------------------------------------------------------
+
uno::Sequence< OUString > SAL_CALL OLESimpleStorage::impl_staticGetSupportedServiceNames()
{
uno::Sequence< OUString > aRet(1);
@@ -80,20 +80,20 @@ uno::Sequence< OUString > SAL_CALL OLESimpleStorage::impl_staticGetSupportedServ
return aRet;
}
-//-------------------------------------------------------------------------
+
OUString SAL_CALL OLESimpleStorage::impl_staticGetImplementationName()
{
return OUString("com.sun.star.comp.embed.OLESimpleStorage");
}
-//-------------------------------------------------------------------------
+
uno::Reference< uno::XInterface > SAL_CALL OLESimpleStorage::impl_staticCreateSelfInstance(
const uno::Reference< lang::XMultiServiceFactory >& xServiceManager )
{
return uno::Reference< uno::XInterface >( *new OLESimpleStorage( xServiceManager ) );
}
-//-------------------------------------------------------------------------
+
void OLESimpleStorage::UpdateOriginal_Impl()
{
if ( !m_bNoTemporaryCopy )
@@ -119,7 +119,7 @@ void OLESimpleStorage::UpdateOriginal_Impl()
}
}
-//-------------------------------------------------------------------------
+
void OLESimpleStorage::InsertInputStreamToStorage_Impl( BaseStorage* pStorage, OUString aName, const uno::Reference< io::XInputStream >& xInputStream )
throw ( uno::Exception )
{
@@ -164,7 +164,7 @@ void OLESimpleStorage::InsertInputStreamToStorage_Impl( BaseStorage* pStorage, O
DELETEZ( pNewStream );
}
-//-------------------------------------------------------------------------
+
void OLESimpleStorage::InsertNameAccessToStorage_Impl( BaseStorage* pStorage, OUString aName, const uno::Reference< container::XNameAccess >& xNameAccess )
throw ( uno::Exception )
{
@@ -208,9 +208,9 @@ void OLESimpleStorage::InsertNameAccessToStorage_Impl( BaseStorage* pStorage, OU
DELETEZ( pNewStorage );
}
-//____________________________________________________________________________________________________
+
// XInitialization
-//____________________________________________________________________________________________________
+
void SAL_CALL OLESimpleStorage::initialize( const uno::Sequence< uno::Any >& aArguments )
throw ( uno::Exception,
@@ -311,11 +311,11 @@ void SAL_CALL OLESimpleStorage::initialize( const uno::Sequence< uno::Any >& aAr
}
-//____________________________________________________________________________________________________
+
// XNameContainer
-//____________________________________________________________________________________________________
-// --------------------------------------------------------------------------------
+
+
void SAL_CALL OLESimpleStorage::insertByName( const OUString& aName, const uno::Any& aElement )
throw ( lang::IllegalArgumentException,
container::ElementExistException,
@@ -367,7 +367,7 @@ void SAL_CALL OLESimpleStorage::insertByName( const OUString& aName, const uno::
}
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL OLESimpleStorage::removeByName( const OUString& aName )
throw ( container::NoSuchElementException,
lang::WrappedTargetException,
@@ -396,7 +396,7 @@ void SAL_CALL OLESimpleStorage::removeByName( const OUString& aName )
}
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL OLESimpleStorage::replaceByName( const OUString& aName, const uno::Any& aElement )
throw ( lang::IllegalArgumentException,
container::NoSuchElementException,
@@ -424,7 +424,7 @@ void SAL_CALL OLESimpleStorage::replaceByName( const OUString& aName, const uno:
}
}
-// --------------------------------------------------------------------------------
+
uno::Any SAL_CALL OLESimpleStorage::getByName( const OUString& aName )
throw ( container::NoSuchElementException,
lang::WrappedTargetException,
@@ -537,7 +537,7 @@ uno::Any SAL_CALL OLESimpleStorage::getByName( const OUString& aName )
return aResult;
}
-// --------------------------------------------------------------------------------
+
uno::Sequence< OUString > SAL_CALL OLESimpleStorage::getElementNames()
throw ( uno::RuntimeException )
{
@@ -565,7 +565,7 @@ uno::Sequence< OUString > SAL_CALL OLESimpleStorage::getElementNames()
return aSeq;
}
-// --------------------------------------------------------------------------------
+
sal_Bool SAL_CALL OLESimpleStorage::hasByName( const OUString& aName )
throw ( uno::RuntimeException )
{
@@ -588,7 +588,7 @@ sal_Bool SAL_CALL OLESimpleStorage::hasByName( const OUString& aName )
return bResult ? sal_True : sal_False;
}
-// --------------------------------------------------------------------------------
+
uno::Type SAL_CALL OLESimpleStorage::getElementType()
throw ( uno::RuntimeException )
{
@@ -600,7 +600,7 @@ uno::Type SAL_CALL OLESimpleStorage::getElementType()
return getCppuType( (const uno::Reference< io::XInputStream >*)NULL );
}
-// --------------------------------------------------------------------------------
+
sal_Bool SAL_CALL OLESimpleStorage::hasElements()
throw ( uno::RuntimeException )
{
@@ -624,11 +624,11 @@ sal_Bool SAL_CALL OLESimpleStorage::hasElements()
return aList.size() != 0 ? sal_True : sal_False;
}
-//____________________________________________________________________________________________________
+
// XComponent
-//____________________________________________________________________________________________________
-// --------------------------------------------------------------------------------
+
+
void SAL_CALL OLESimpleStorage::dispose()
throw ( uno::RuntimeException )
{
@@ -652,7 +652,7 @@ void SAL_CALL OLESimpleStorage::dispose()
m_bDisposed = true;
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL OLESimpleStorage::addEventListener(
const uno::Reference< lang::XEventListener >& xListener )
throw ( uno::RuntimeException )
@@ -668,7 +668,7 @@ void SAL_CALL OLESimpleStorage::addEventListener(
m_pListenersContainer->addInterface( xListener );
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL OLESimpleStorage::removeEventListener(
const uno::Reference< lang::XEventListener >& xListener )
throw ( uno::RuntimeException )
@@ -682,11 +682,11 @@ void SAL_CALL OLESimpleStorage::removeEventListener(
m_pListenersContainer->removeInterface( xListener );
}
-//____________________________________________________________________________________________________
+
// XTransactedObject
-//____________________________________________________________________________________________________
-// --------------------------------------------------------------------------------
+
+
void SAL_CALL OLESimpleStorage::commit()
throw ( ::com::sun::star::io::IOException,
::com::sun::star::lang::WrappedTargetException,
@@ -712,7 +712,7 @@ void SAL_CALL OLESimpleStorage::commit()
UpdateOriginal_Impl();
}
-// --------------------------------------------------------------------------------
+
void SAL_CALL OLESimpleStorage::revert()
throw ( ::com::sun::star::io::IOException,
::com::sun::star::lang::WrappedTargetException,
@@ -738,9 +738,9 @@ void SAL_CALL OLESimpleStorage::revert()
UpdateOriginal_Impl();
}
-//____________________________________________________________________________________________________
+
// XClassifiedObject
-//____________________________________________________________________________________________________
+
uno::Sequence< sal_Int8 > SAL_CALL OLESimpleStorage::getClassID()
throw ( uno::RuntimeException )