Changeset 243115 in webkit


Ignore:
Timestamp:
Mar 18, 2019 4:51:42 PM (5 years ago)
Author:
commit-queue@webkit.org
Message:

[WTF] Remove redundant std::move in StringConcatenate
https://bugs.webkit.org/show_bug.cgi?id=195798

Patch by Xan Lopez <Xan Lopez> on 2019-03-18
Reviewed by Darin Adler.

Remove redundant calls to WTFMove in return values for this
method. C++ will already do an implicit move here since we are
returning a local value where copy/move elision is not applicable.

  • wtf/text/StringConcatenate.h:

(WTF::tryMakeStringFromAdapters):

Location:
trunk/Source/WTF
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r243049 r243115  
     12019-03-18  Xan Lopez  <xan@igalia.com>
     2
     3        [WTF] Remove redundant std::move in StringConcatenate
     4        https://bugs.webkit.org/show_bug.cgi?id=195798
     5
     6        Reviewed by Darin Adler.
     7
     8        Remove redundant calls to WTFMove in return values for this
     9        method. C++ will already do an implicit move here since we are
     10        returning a local value where copy/move elision is not applicable.
     11
     12        * wtf/text/StringConcatenate.h:
     13        (WTF::tryMakeStringFromAdapters):
     14
    1152019-03-16  Darin Adler  <darin@apple.com>
    216
  • trunk/Source/WTF/wtf/text/StringConcatenate.h

    r242308 r243115  
    279279        makeStringAccumulator(buffer, adapter, adapters...);
    280280
    281         return WTFMove(resultImpl);
     281        return resultImpl;
    282282    }
    283283
     
    289289    makeStringAccumulator(buffer, adapter, adapters...);
    290290
    291     return WTFMove(resultImpl);
     291    return resultImpl;
    292292}
    293293
Note: See TracChangeset for help on using the changeset viewer.