Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 859dcdc9 authored by Colin Cross's avatar Colin Cross
Browse files

Fix constructor parameters shadowing member variables

Using the same name for the constructor parameter and the member
variable causes a warning that was being hidden by the use of -isystem
to include frameworks/native/include.  Prefix the parameter with an
underscore.

Bug: 31752268
Test: m -j
Change-Id: I60c7dc388999bafbb97cb42f5e0af5361df68d56
(cherry picked from commit 0ed088bd)
parent 353eeaa9
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -45,12 +45,12 @@ public:
            occupancyAverage(0.0f),
            usedThirdBuffer(false) {}

        Segment(nsecs_t totalTime, size_t numFrames, float occupancyAverage,
                bool usedThirdBuffer)
          : totalTime(totalTime),
            numFrames(numFrames),
            occupancyAverage(occupancyAverage),
            usedThirdBuffer(usedThirdBuffer) {}
        Segment(nsecs_t _totalTime, size_t _numFrames, float _occupancyAverage,
                bool _usedThirdBuffer)
          : totalTime(_totalTime),
            numFrames(_numFrames),
            occupancyAverage(_occupancyAverage),
            usedThirdBuffer(_usedThirdBuffer) {}

        // Parcelable interface
        virtual status_t writeToParcel(Parcel* parcel) const override;