]> granicus.if.org Git - libmatroska/commitdiff
clang-tidy: use auto
authorRosen Penev <rosenp@gmail.com>
Thu, 19 May 2022 01:16:25 +0000 (18:16 -0700)
committerRosen Penev <rosenp@gmail.com>
Sun, 22 May 2022 21:33:26 +0000 (14:33 -0700)
Found with modernize-use-auto

Signed-off-by: Rosen Penev <rosenp@gmail.com>
matroska/KaxTracks.h

index b8740391841eaba9bc8264b8ad1bf13fe75c9463..d820bceadebf2ffe0b3da05650ae741a15dcd5b8 100644 (file)
@@ -55,7 +55,7 @@ DECLARE_MKX_MASTER(KaxTrackEntry)
       \note lacing set by default
     */
     inline bool LacingEnabled() const {
-      KaxTrackFlagLacing * myLacing = static_cast<KaxTrackFlagLacing *>(FindFirstElt(EBML_INFO(KaxTrackFlagLacing)));
+      auto myLacing = static_cast<KaxTrackFlagLacing *>(FindFirstElt(EBML_INFO(KaxTrackFlagLacing)));
       return((myLacing == nullptr) || (uint8(*myLacing) != 0));
     }