From: Steve Lhomme Date: Mon, 15 Mar 2010 15:55:14 +0000 (+0000) Subject: integer and boolean variables don't need a const when used as parameters X-Git-Tag: release-0.9.0~55 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a5e3439cee78a8fc85e8c2781dd281fed77e86cf;p=libmatroska integer and boolean variables don't need a const when used as parameters git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/libmatroska@6 a6f86f6d-0131-4f8e-9e7b-e335508773d5 --- diff --git a/matroska/FileKax.h b/matroska/FileKax.h index 8160a89..8ac7393 100644 --- a/matroska/FileKax.h +++ b/matroska/FileKax.h @@ -72,12 +72,12 @@ class MATROSKA_DLL_API FileMatroska { inline void type_SetInfo(const std::string & aStr) {myMainHeader.type_SetInfo(aStr);} inline void type_SetAds(const std::string & aStr) {myMainHeader.type_SetAds(aStr);} inline void type_SetSize(const std::string & aStr) {myMainHeader.type_SetSize(aStr);} - inline void type_SetSize(const uint64 aSize) {myMainHeader.type_SetSize(aSize);} + inline void type_SetSize(uint64 aSize) {myMainHeader.type_SetSize(aSize);} inline uint8 GetTrackNumber() const { return myTracks.size(); } void track_SetName(Track * aTrack, const std::string & aName); - void track_SetLaced(Track * aTrack, const bool bLaced = true); + void track_SetLaced(Track * aTrack, bool bLaced = true); Track * CreateTrack(const track_type aType); inline Track * GetTrack(const uint8 aTrackNb) const @@ -102,7 +102,7 @@ class MATROSKA_DLL_API FileMatroska { \return wether the frame has been added or not */ bool AddFrame(Track * aTrack, const uint32 aTimecode, const binary *aFrame, const uint32 aFrameSize, - const bool aKeyFrame = true, const bool aBFrame = false); + bool aKeyFrame = true, bool aBFrame = false); /*! \return wether the frame has been read or not diff --git a/src/FileKax.cpp b/src/FileKax.cpp index 0385d1e..392886b 100644 --- a/src/FileKax.cpp +++ b/src/FileKax.cpp @@ -189,7 +189,7 @@ void FileMatroska::track_SetName(Track * aTrack, const std::string & aName) } } -void FileMatroska::track_SetLaced(Track * aTrack, const bool bLaced) +void FileMatroska::track_SetLaced(Track * aTrack, bool bLaced) { if (IsMyTrack(aTrack)) { @@ -198,7 +198,7 @@ void FileMatroska::track_SetLaced(Track * aTrack, const bool bLaced) } bool FileMatroska::AddFrame(Track * aTrack, const uint32 aTimecode, const binary *aFrame, const uint32 aFrameSize, - const bool aKeyFrame, const bool aBFrame) + bool aKeyFrame, bool aBFrame) { try { // make sure we know that track