Changeset 14:00f524b90537 in finroc_plugins_composite_ports


Ignore:
Timestamp:
05.05.2020 00:42:48 (12 months ago)
Author:
Max Reichardt <mreichardt@…>
Branch:
default
Phase:
public
Message:

Fixes compiler warning with gcc 9.3 ('moving a local object in a return statement prevents copy elision')

File:
1 edited

Legend:

Unmodified
Added
Removed
  • internal/tInterfaceTypeInfo.cpp

    r2 r14  
    125125  if (index == std::string::npos) 
    126126  { 
    127     return std::move(from_rrlib_rtti); 
     127    return from_rrlib_rtti; 
    128128  } 
    129129  rrlib_rtti_string = rrlib_rtti_string.substr(0, index); 
Note: See TracChangeset for help on using the changeset viewer.