]> granicus.if.org Git - libmatroska/commitdiff
[clang-tidy] make parameter names match those in function declarations
authorMoritz Bunkus <moritz@bunkus.org>
Mon, 22 Jun 2020 08:33:53 +0000 (10:33 +0200)
committerMoritz Bunkus <moritz@bunkus.org>
Mon, 22 Jun 2020 08:33:53 +0000 (10:33 +0200)
src/KaxBlock.cpp
src/KaxCluster.cpp
src/KaxCuesData.cpp

index 41ff4a25b0e665ad64f4961e7b53357bd908a945..03aa4e09bfded2c4a558835d23233e80e0bbfc0e 100644 (file)
@@ -1008,9 +1008,9 @@ bool KaxBlockBlob::AddFrameAuto(const KaxTrackEntry & track, uint64 timecode, Da
   return bResult;
 }
 
-void KaxBlockBlob::SetParent(KaxCluster & parent_clust)
+void KaxBlockBlob::SetParent(KaxCluster & aParentCluster)
 {
-  ParentCluster = &parent_clust;
+  ParentCluster = &aParentCluster;
 }
 
 void KaxBlockBlob::SetBlockDuration(uint64 TimeLength)
index f08ddfc50753db522c8cea48226794accc082c71..8390b61bc437f60d643d59404be1646685e71a7c 100644 (file)
@@ -264,7 +264,7 @@ int16 KaxCluster::GetBlockLocalTimecode(uint64 aGlobalTimecode) const
   return int16(TimecodeDelay);
 }
 
-uint64 KaxCluster::GetBlockGlobalTimecode(int16 GlobalSavedTimecode)
+uint64 KaxCluster::GetBlockGlobalTimecode(int16 LocalTimecode)
 {
   if (!bFirstFrameInside) {
     KaxClusterTimecode * Timecode = static_cast<KaxClusterTimecode *>(this->FindElt(EBML_INFO(KaxClusterTimecode)));
@@ -273,7 +273,7 @@ uint64 KaxCluster::GetBlockGlobalTimecode(int16 GlobalSavedTimecode)
     bFirstFrameInside = true;
     bPreviousTimecodeIsSet = true;
   }
-  return int64(GlobalSavedTimecode * GlobalTimecodeScale()) + GlobalTimecode();
+  return int64(LocalTimecode * GlobalTimecodeScale()) + GlobalTimecode();
 }
 
 KaxBlockGroup & KaxCluster::GetNewBlock()
index 628c8bec87c5f9b4b5e88d9cb6f68114f32d59be..b2a15fcec38a48af790f52824acc5f9c0a49c96d 100644 (file)
@@ -139,19 +139,19 @@ void KaxCueReference::AddReference(const KaxBlockBlob & BlockReference, uint64 G
 #endif /* OLD */
 }
 
-bool KaxCuePoint::IsSmallerThan(const EbmlElement * EltB) const
+bool KaxCuePoint::IsSmallerThan(const EbmlElement * Cmp) const
 {
   assert(EbmlId(*this) == EBML_ID(KaxCuePoint));
-  assert(EbmlId(*EltB) == EBML_ID(KaxCuePoint));
+  assert(EbmlId(*Cmp)  == EBML_ID(KaxCuePoint));
 
-  const KaxCuePoint & theEltB = *static_cast<const KaxCuePoint *>(EltB);
+  const KaxCuePoint & theCmp = *static_cast<const KaxCuePoint *>(Cmp);
 
   // compare timecode
   const KaxCueTime * TimeCodeA = static_cast<const KaxCueTime *>(FindElt(EBML_INFO(KaxCueTime)));
   if (TimeCodeA == NULL)
     return false;
 
-  const KaxCueTime * TimeCodeB = static_cast<const KaxCueTime *>(theEltB.FindElt(EBML_INFO(KaxCueTime)));
+  const KaxCueTime * TimeCodeB = static_cast<const KaxCueTime *>(theCmp.FindElt(EBML_INFO(KaxCueTime)));
   if (TimeCodeB == NULL)
     return false;
 
@@ -166,7 +166,7 @@ bool KaxCuePoint::IsSmallerThan(const EbmlElement * EltB) const
   if (TrackA == NULL)
     return false;
 
-  const KaxCueTrack * TrackB = static_cast<const KaxCueTrack *>(theEltB.FindElt(EBML_INFO(KaxCueTrack)));
+  const KaxCueTrack * TrackB = static_cast<const KaxCueTrack *>(theCmp.FindElt(EBML_INFO(KaxCueTrack)));
   if (TrackB == NULL)
     return false;