summaryrefslogtreecommitdiff
path: root/sot
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-08-11 08:42:22 +0200
committerNoel Grandin <noel@peralex.com>2015-08-11 09:48:18 +0200
commitd58e542d7df3f761047b0e5f9a5917901b4579d1 (patch)
tree96c7f9e20e7da0dd22ec4a52f35c514104dd235b /sot
parente5da350e4dd9b175c2f50cb392b23a805dac9a27 (diff)
loplugin: defaultparams
Change-Id: I1d88744207f7fa7c8230f8b29d9cc123f488dfaa
Diffstat (limited to 'sot')
-rw-r--r--sot/source/sdstor/stgstrms.cxx8
-rw-r--r--sot/source/sdstor/ucbstorage.cxx6
2 files changed, 7 insertions, 7 deletions
diff --git a/sot/source/sdstor/stgstrms.cxx b/sot/source/sdstor/stgstrms.cxx
index a530501da2bb..ecd987fffa2b 100644
--- a/sot/source/sdstor/stgstrms.cxx
+++ b/sot/source/sdstor/stgstrms.cxx
@@ -271,7 +271,7 @@ bool StgFAT::InitNew( sal_Int32 nPage1 )
// use the Pos2Page() method of the stream
rStrm.Pos2Page( nPage1 << 2 );
// Initialize the page
- pPg = rStrm.GetIo().Copy( rStrm.GetPage(), STG_FREE );
+ pPg = rStrm.GetIo().Copy( rStrm.GetPage() );
if ( !pPg.is() )
return false;
for( short i = 0; i < nEntries; i++ )
@@ -589,7 +589,7 @@ sal_Int32 StgFATStrm::GetPage( short nOff, bool bMake, sal_uInt16 *pnMasterAlloc
// create a new master page
nFAT = nMaxPage++;
- pMaster = rIo.Copy( nFAT, STG_FREE );
+ pMaster = rIo.Copy( nFAT );
if ( pMaster.is() )
{
for( short k = 0; k < (short)( nPageSize >> 2 ); k++ )
@@ -741,7 +741,7 @@ bool StgFATStrm::SetSize( sal_Int32 nBytes )
return false;
}
// Set up the page with empty entries
- rtl::Reference< StgPage > pPg = rIo.Copy( nNewPage, STG_FREE );
+ rtl::Reference< StgPage > pPg = rIo.Copy( nNewPage );
if ( !pPg.is() )
return false;
for( short j = 0; j < (short)( nPageSize >> 2 ); j++ )
@@ -847,7 +847,7 @@ bool StgDataStrm::SetSize( sal_Int32 nBytes )
{
Pos2Page( nBytes );
if( nPage >= 0 )
- rIo.Copy( nPage, STG_FREE );
+ rIo.Copy( nPage );
}
}
return true;
diff --git a/sot/source/sdstor/ucbstorage.cxx b/sot/source/sdstor/ucbstorage.cxx
index fa557af651ea..bf1f72f6cec3 100644
--- a/sot/source/sdstor/ucbstorage.cxx
+++ b/sot/source/sdstor/ucbstorage.cxx
@@ -1535,7 +1535,7 @@ UCBStorage_Impl::UCBStorage_Impl( const ::ucbhelper::Content& rContent, const OU
// no name given = use temporary name!
DBG_ASSERT( m_bIsRoot, "SubStorage must have a name!" );
m_pTempFile = new ::utl::TempFile;
- m_pTempFile->EnableKillingFile( true );
+ m_pTempFile->EnableKillingFile();
m_aName = m_aOriginalName = aName = m_pTempFile->GetURL();
}
@@ -1568,7 +1568,7 @@ UCBStorage_Impl::UCBStorage_Impl( const OUString& rName, StreamMode nMode, UCBSt
// no name given = use temporary name!
DBG_ASSERT( m_bIsRoot, "SubStorage must have a name!" );
m_pTempFile = new ::utl::TempFile;
- m_pTempFile->EnableKillingFile( true );
+ m_pTempFile->EnableKillingFile();
m_aName = m_aOriginalName = aName = m_pTempFile->GetURL();
}
@@ -1614,7 +1614,7 @@ UCBStorage_Impl::UCBStorage_Impl( SvStream& rStream, UCBStorage* pStorage, bool
{
// opening in direct mode is too fuzzy because the data is transferred to the stream in the Commit() call,
// which will be called in the storages' dtor
- m_pTempFile->EnableKillingFile( true );
+ m_pTempFile->EnableKillingFile();
DBG_ASSERT( !bDirect, "Storage on a stream must not be opened in direct mode!" );
// UCBStorages work on a content, so a temporary file for a content must be created, even if the stream is only