summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-03-08 15:19:44 +0200
committerNoel Grandin <noel@peralex.com>2016-03-09 10:07:46 +0200
commit96a2aa94b2a68e12ab74cb6d8f4a16f6c63e4ccf (patch)
tree3401b0846e9b97cbf2d123d535f32e18b2d9f5f9 /include
parent44bccf92bc78daa93e969e8b37aeef96a3b38987 (diff)
loplugin:constantparam in svl
Change-Id: Iefc441262cbdc6f115ea4ca5a673456b59477e13
Diffstat (limited to 'include')
-rw-r--r--include/svl/filerec.hxx11
-rw-r--r--include/svl/undo.hxx2
2 files changed, 6 insertions, 7 deletions
diff --git a/include/svl/filerec.hxx b/include/svl/filerec.hxx
index 063d2961908f..107dd61ceb1f 100644
--- a/include/svl/filerec.hxx
+++ b/include/svl/filerec.hxx
@@ -295,7 +295,7 @@ protected:
sal_uInt16 nTag, sal_uInt8 nCurVer );
public:
- sal_uInt32 Close( bool bSeekToEndOfRec = true );
+ sal_uInt32 Close();
};
/**
@@ -588,7 +588,7 @@ inline void SfxMiniRecordReader::Skip()
}
/// @see SfxMiniRecordWriter::Close()
-inline sal_uInt32 SfxSingleRecordWriter::Close( bool bSeekToEndOfRec )
+inline sal_uInt32 SfxSingleRecordWriter::Close()
{
sal_uInt32 nRet = 0;
@@ -596,17 +596,16 @@ inline sal_uInt32 SfxSingleRecordWriter::Close( bool bSeekToEndOfRec )
if ( !_bHeaderOk )
{
// write base class header
- sal_uInt32 nEndPos = SfxMiniRecordWriter::Close( bSeekToEndOfRec );
+ sal_uInt32 nEndPos = SfxMiniRecordWriter::Close( false/*bSeekToEndOfRec*/ );
// seek the end of the own header if needed or stay behind the record
- if ( !bSeekToEndOfRec )
- _pStream->SeekRel( SFX_REC_HEADERSIZE_SINGLE );
+ _pStream->SeekRel( SFX_REC_HEADERSIZE_SINGLE );
nRet = nEndPos;
}
#ifdef DBG_UTIL
else
// check base class header
- SfxMiniRecordWriter::Close( bSeekToEndOfRec );
+ SfxMiniRecordWriter::Close( false/*bSeekToEndOfRec*/ );
#endif
return nRet;
diff --git a/include/svl/undo.hxx b/include/svl/undo.hxx
index 4893dde77a1a..72cb5023865a 100644
--- a/include/svl/undo.hxx
+++ b/include/svl/undo.hxx
@@ -354,7 +354,7 @@ public:
/** removes the oldest Undo actions from the stack
*/
- void RemoveOldestUndoActions( size_t const i_count );
+ void RemoveOldestUndoAction();
void dumpAsXml(struct _xmlTextWriter* pWriter) const;