summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-02-08 13:19:12 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-02-09 17:07:45 +0100
commit82b91027691a0a7138c0f70b94d6500e35bb8b44 (patch)
tree1f1947f79c3f0f7127814b317e398cea1333206e /package
parent2ae813975ae8ba97e2adbce13be272e6902ca7b5 (diff)
loplugin:indentation in oox..package
Change-Id: Ie50a1ad6e27786ccdaae2ba1ae96f5682c4a38f6 Reviewed-on: https://gerrit.libreoffice.org/67560 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'package')
-rw-r--r--package/source/xstor/owriteablestream.cxx8
-rw-r--r--package/source/xstor/xstorage.cxx12
-rw-r--r--package/source/zipapi/ZipOutputEntry.cxx2
-rw-r--r--package/source/zippackage/ZipPackage.cxx14
-rw-r--r--package/source/zippackage/ZipPackageBuffer.cxx2
-rw-r--r--package/source/zippackage/zipfileaccess.cxx2
6 files changed, 20 insertions, 20 deletions
diff --git a/package/source/xstor/owriteablestream.cxx b/package/source/xstor/owriteablestream.cxx
index 8fe6446b50db..f81c3af1c5eb 100644
--- a/package/source/xstor/owriteablestream.cxx
+++ b/package/source/xstor/owriteablestream.cxx
@@ -2378,7 +2378,7 @@ void SAL_CALL OWriteStream::dispose()
// for now the listener is just notified at the end of the method to workaround the problem
// in future a more elegant way should be found
- lang::EventObject aSource( static_cast< ::cppu::OWeakObject* >(this) );
+ lang::EventObject aSource( static_cast< ::cppu::OWeakObject* >(this) );
m_pData->m_aListenersContainer.disposeAndClear( aSource );
}
@@ -3096,12 +3096,12 @@ void OWriteStream::BroadcastTransaction( sal_Int8 nMessage )
throw lang::DisposedException();
}
- lang::EventObject aSource( static_cast< ::cppu::OWeakObject* >(this) );
+ lang::EventObject aSource( static_cast< ::cppu::OWeakObject* >(this) );
- ::cppu::OInterfaceContainerHelper* pContainer =
+ ::cppu::OInterfaceContainerHelper* pContainer =
m_pData->m_aListenersContainer.getContainer(
cppu::UnoType<embed::XTransactionListener>::get());
- if ( pContainer )
+ if ( pContainer )
{
::cppu::OInterfaceIteratorHelper pIterator( *pContainer );
while ( pIterator.hasMoreElements( ) )
diff --git a/package/source/xstor/xstorage.cxx b/package/source/xstor/xstorage.cxx
index 2d2098df298a..a7cdc1de4d9e 100644
--- a/package/source/xstor/xstorage.cxx
+++ b/package/source/xstor/xstorage.cxx
@@ -1933,12 +1933,12 @@ void OStorage::BroadcastModifiedIfNecessary()
SAL_WARN_IF( m_pData->m_bReadOnlyWrap, "package.xstor", "The storage can not be modified at all!" );
- lang::EventObject aSource( static_cast< ::cppu::OWeakObject* >(this) );
+ lang::EventObject aSource( static_cast< ::cppu::OWeakObject* >(this) );
- ::cppu::OInterfaceContainerHelper* pContainer =
+ ::cppu::OInterfaceContainerHelper* pContainer =
m_pData->m_aListenersContainer.getContainer(
cppu::UnoType<util::XModifyListener>::get());
- if ( pContainer )
+ if ( pContainer )
{
::cppu::OInterfaceIteratorHelper pIterator( *pContainer );
while ( pIterator.hasMoreElements( ) )
@@ -1965,12 +1965,12 @@ void OStorage::BroadcastTransaction( sal_Int8 nMessage )
SAL_WARN_IF( m_pData->m_bReadOnlyWrap, "package.xstor", "The storage can not be modified at all!" );
- lang::EventObject aSource( static_cast< ::cppu::OWeakObject* >(this) );
+ lang::EventObject aSource( static_cast< ::cppu::OWeakObject* >(this) );
- ::cppu::OInterfaceContainerHelper* pContainer =
+ ::cppu::OInterfaceContainerHelper* pContainer =
m_pData->m_aListenersContainer.getContainer(
cppu::UnoType<embed::XTransactionListener>::get());
- if ( pContainer )
+ if ( pContainer )
{
::cppu::OInterfaceIteratorHelper pIterator( *pContainer );
while ( pIterator.hasMoreElements( ) )
diff --git a/package/source/zipapi/ZipOutputEntry.cxx b/package/source/zipapi/ZipOutputEntry.cxx
index 79f2bdbbd974..3fa6e2792752 100644
--- a/package/source/zipapi/ZipOutputEntry.cxx
+++ b/package/source/zipapi/ZipOutputEntry.cxx
@@ -183,7 +183,7 @@ void ZipOutputEntry::write( const Sequence< sal_Int8 >& rBuffer )
if (!m_aDeflater.finished())
{
m_aDeflater.setInputSegment(rBuffer);
- while (!m_aDeflater.needsInput())
+ while (!m_aDeflater.needsInput())
doDeflate();
if (!m_bEncryptCurrentEntry)
m_aCRC.updateSegment(rBuffer, rBuffer.getLength());
diff --git a/package/source/zippackage/ZipPackage.cxx b/package/source/zippackage/ZipPackage.cxx
index 6cbd1807b6c9..b22b83ec7be0 100644
--- a/package/source/zippackage/ZipPackage.cxx
+++ b/package/source/zippackage/ZipPackage.cxx
@@ -618,7 +618,7 @@ void SAL_CALL ZipPackage::initialize( const uno::Sequence< Any >& aArguments )
m_aURL = aParamUrl.copy( 0, nParam );
OUString aParam = aParamUrl.copy( nParam + 1 );
- sal_Int32 nIndex = 0;
+ sal_Int32 nIndex = 0;
do
{
OUString aCommand = aParam.getToken( 0, '&', nIndex );
@@ -1337,7 +1337,7 @@ uno::Reference< io::XInputStream > ZipPackage::writeTempFile()
if( bUseTemp )
{
// no information loss appears, thus no special handling is required
- uno::Any aCaught( ::cppu::getCaughtException() );
+ uno::Any aCaught( ::cppu::getCaughtException() );
// it is allowed to throw WrappedTargetException
WrappedTargetException aException;
@@ -1399,10 +1399,10 @@ uno::Reference< XActiveDataStreamer > ZipPackage::openOriginalForOutput()
}
OpenCommandArgument2 aArg;
- aArg.Mode = OpenMode::DOCUMENT;
- aArg.Priority = 0; // unused
- aArg.Sink = xSink;
- aArg.Properties = uno::Sequence< Property >( 0 ); // unused
+ aArg.Mode = OpenMode::DOCUMENT;
+ aArg.Priority = 0; // unused
+ aArg.Sink = xSink;
+ aArg.Properties = uno::Sequence< Property >( 0 ); // unused
aOriginalContent.executeCommand("open", makeAny( aArg ) );
}
@@ -1436,7 +1436,7 @@ void SAL_CALL ZipPackage::commitChanges()
}
catch (const ucb::ContentCreationException&)
{
- css::uno::Any anyEx = cppu::getCaughtException();
+ css::uno::Any anyEx = cppu::getCaughtException();
throw WrappedTargetException(THROW_WHERE "Temporary file should be creatable!",
static_cast < OWeakObject * > ( this ), anyEx );
}
diff --git a/package/source/zippackage/ZipPackageBuffer.cxx b/package/source/zippackage/ZipPackageBuffer.cxx
index b50ca89b8dac..810daa737a4a 100644
--- a/package/source/zippackage/ZipPackageBuffer.cxx
+++ b/package/source/zippackage/ZipPackageBuffer.cxx
@@ -96,7 +96,7 @@ void SAL_CALL ZipPackageBuffer::writeBytes( const Sequence< sal_Int8 >& aData )
}
else if (m_bMustInitBuffer)
{
- m_aBuffer.realloc ( static_cast < sal_Int32 > ( m_nBufferSize ) );
+ m_aBuffer.realloc ( static_cast < sal_Int32 > ( m_nBufferSize ) );
m_bMustInitBuffer = false;
}
memcpy( m_aBuffer.getArray() + m_nCurrent, aData.getConstArray(), static_cast < sal_Int32 > (nDataLen));
diff --git a/package/source/zippackage/zipfileaccess.cxx b/package/source/zippackage/zipfileaccess.cxx
index 461da35829e3..b9167a9f3a2e 100644
--- a/package/source/zippackage/zipfileaccess.cxx
+++ b/package/source/zippackage/zipfileaccess.cxx
@@ -412,7 +412,7 @@ void SAL_CALL OZipFileAccess::dispose()
if ( m_pListenersContainer )
{
- lang::EventObject aSource( static_cast< ::cppu::OWeakObject* >(this) );
+ lang::EventObject aSource( static_cast< ::cppu::OWeakObject* >(this) );
m_pListenersContainer->disposeAndClear( aSource );
m_pListenersContainer.reset();
}