Bug 154395

Summary: Fix pessimizing-move warnings
Product: WebKit Reporter: Csaba Osztrogonác <ossy>
Component: New BugsAssignee: Csaba Osztrogonác <ossy>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue
Priority: P2    
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 145121    
Attachments:
Description Flags
Patch none

Description Csaba Osztrogonác 2016-02-18 06:07:40 PST
../../Source/WebCore/platform/graphics/efl/CairoUtilitiesEfl.cpp:85:12: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
    return std::move<WTF::CheckMoveParameter>(image);
           ^
../../Source/WebCore/platform/graphics/efl/CairoUtilitiesEfl.cpp:85:12: note: remove std::move call here
    return std::move<WTF::CheckMoveParameter>(image);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     ~


../../Source/WebCore/platform/graphics/surfaces/GLTransportSurface.cpp:56:16: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
        return std::move<WTF::CheckMoveParameter>(surface);
               ^
../../Source/WebCore/platform/graphics/surfaces/GLTransportSurface.cpp:56:16: note: remove std::move call here
        return std::move<WTF::CheckMoveParameter>(surface);
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~       ~


../../Source/WebCore/platform/graphics/surfaces/GLTransportSurface.cpp:223:12: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
    return std::move<WTF::CheckMoveParameter>(client);
           ^
../../Source/WebCore/platform/graphics/surfaces/GLTransportSurface.cpp:223:12: note: remove std::move call here
    return std::move<WTF::CheckMoveParameter>(client);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~      ~
Comment 1 Csaba Osztrogonác 2016-02-18 06:08:36 PST
Created attachment 271657 [details]
Patch
Comment 2 WebKit Commit Bot 2016-02-19 02:48:58 PST
Comment on attachment 271657 [details]
Patch

Clearing flags on attachment: 271657

Committed r196811: <http://trac.webkit.org/changeset/196811>
Comment 3 WebKit Commit Bot 2016-02-19 02:49:02 PST
All reviewed patches have been landed.  Closing bug.