]> granicus.if.org Git - libmatroska/commitdiff
integer and boolean variables don't need a const when used as parameters
authorSteve Lhomme <slhomme@matroska.org>
Mon, 15 Mar 2010 15:55:14 +0000 (15:55 +0000)
committerSteve Lhomme <slhomme@matroska.org>
Mon, 15 Mar 2010 15:55:14 +0000 (15:55 +0000)
git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/libmatroska@6 a6f86f6d-0131-4f8e-9e7b-e335508773d5

matroska/FileKax.h
src/FileKax.cpp

index 8160a892213be22ba019b5bc23aa95de067fe325..8ac7393d74c702b548568dbfb215267921e14574 100644 (file)
@@ -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
index 0385d1e85d2365d8378225bdf608010718615f4a..392886bef998819038cc29ef640a4c80676bd6ad 100644 (file)
@@ -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