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

Commit a213cc0e authored by Mikhail Naganov's avatar Mikhail Naganov Committed by Gerrit Code Review
Browse files

Merge "Haptic Generator : Modify setHgHapticScales method to use const reference."

parents 66764eb6 b0e53fd9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -67,7 +67,7 @@ void HapticGeneratorContext::reset() {
}

RetCode HapticGeneratorContext::setHgHapticScales(
        const std::vector<HapticGenerator::HapticScale> hapticScales) {
        const std::vector<HapticGenerator::HapticScale>& hapticScales) {
    std::lock_guard lg(mMutex);
    for (auto hapticScale : hapticScales) {
        mParams.mHapticScales.insert_or_assign(hapticScale.id, hapticScale.scale);
+1 −1
Original line number Diff line number Diff line
@@ -69,7 +69,7 @@ class HapticGeneratorContext final : public EffectContext {
    RetCode disable();
    void reset();

    RetCode setHgHapticScales(const std::vector<HapticGenerator::HapticScale> hapticScales);
    RetCode setHgHapticScales(const std::vector<HapticGenerator::HapticScale>& hapticScales);
    std::vector<HapticGenerator::HapticScale> getHgHapticScales();

    RetCode setHgVibratorInformation(const HapticGenerator::VibratorInformation& vibratorInfo);