Changeset 264508 in webkit


Ignore:
Timestamp:
Jul 17, 2020, 7:34:39 AM (5 years ago)
Author:
jh718.park@samsung.com
Message:

Remove the build warning below and redundant spaces since r263985.
warning: redundant move in return statement [-Wredundant-move]

No new tests, no new behaviors.

  • Modules/webaudio/AudioNode.h:
  • Modules/webaudio/PannerNode.cpp:

(WebCore::PannerNode::create):
(WebCore::PannerNode::PannerNode):

  • Modules/webaudio/PannerNode.h:
Location:
trunk/Source/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r264501 r264508  
     12020-07-17  Joonghun Park  <jh718.park@samsung.com>
     2
     3        Remove the build warning below and redundant spaces since r263985.
     4        warning: redundant move in return statement [-Wredundant-move]
     5
     6        No new tests, no new behaviors.
     7
     8        * Modules/webaudio/AudioNode.h:
     9        * Modules/webaudio/PannerNode.cpp:
     10        (WebCore::PannerNode::create):
     11        (WebCore::PannerNode::PannerNode):
     12        * Modules/webaudio/PannerNode.h:
     13
    1142020-07-16  Rob Buis  <rbuis@igalia.com>
    215
  • trunk/Source/WebCore/Modules/webaudio/AudioNode.h

    r264176 r264508  
    211211    NodeType m_nodeType { NodeTypeUnknown };
    212212    Ref<BaseAudioContext> m_context;
    213    
     213
    214214    // FIXME: Remove m_sampleRate once old constructor is removed.
    215215    float m_sampleRate;
    216    
     216
    217217    Vector<std::unique_ptr<AudioNodeInput>> m_inputs;
    218218    Vector<std::unique_ptr<AudioNodeOutput>> m_outputs;
  • trunk/Source/WebCore/Modules/webaudio/PannerNode.cpp

    r264342 r264508  
    9898    if (result.hasException())
    9999        return result.releaseException();
    100    
     100
    101101    result = panner->setRefDistance(options.refDistance);
    102102    if (result.hasException())
    103103        return result.releaseException();
    104    
     104
    105105    result = panner->setRolloffFactor(options.rolloffFactor);
    106106    if (result.hasException())
    107107        return result.releaseException();
    108    
     108
    109109    result = panner->setConeOuterGain(options.coneOuterGain);
    110110    if (result.hasException())
    111111        return result.releaseException();
    112    
     112
    113113    result = panner->setChannelCount(options.channelCount.valueOr(2));
    114114    if (result.hasException())
    115115        return result.releaseException();
    116    
     116
    117117    result = panner->setChannelCountMode(options.channelCountMode.valueOr(ChannelCountMode::ClampedMax));
    118118    if (result.hasException())
    119119        return result.releaseException();
    120    
     120
    121121    result = panner->setChannelInterpretation(options.channelInterpretation.valueOr(ChannelInterpretation::Speakers));
    122122    if (result.hasException())
    123123        return result.releaseException();
    124    
    125     return WTFMove(panner);
     124
     125    return panner;
    126126}
    127127
     
    144144    setConeOuterAngle(options.coneOuterAngle);
    145145    setNodeType(NodeTypePanner);
    146    
     146
    147147    addInput(makeUnique<AudioNodeInput>(this));
    148148    addOutput(makeUnique<AudioNodeOutput>(this, 2));
    149    
     149
    150150    initialize();
    151151}
  • trunk/Source/WebCore/Modules/webaudio/PannerNode.h

    r264176 r264508  
    5252
    5353protected:
    54    
     54
    5555    // FIXME: Remove once dependencies on old constructor are removed
    5656    PannerNodeBase(BaseAudioContext&, float sampleRate);
     
    7373        return adoptRef(*new PannerNode(context, sampleRate));
    7474    }
    75    
     75
    7676    static ExceptionOr<Ref<PannerNode>> create(BaseAudioContext&, const PannerOptions& = { });
    77    
     77
    7878    virtual ~PannerNode();
    7979
Note: See TracChangeset for help on using the changeset viewer.