rsx: Apply Clang-Tidy fix "modernize-pass-by-value"

This commit is contained in:
scribam 2019-06-08 09:06:35 +02:00 committed by kd-11
parent a02a8642b0
commit cba828384d
4 changed files with 12 additions and 12 deletions

View File

@ -146,8 +146,8 @@ public:
const fragment_program_type& fp;
pipeline_properties props;
async_link_task_entry(const vertex_program_type& _V, const fragment_program_type& _F, const pipeline_properties& _P)
: vp(_V), fp(_F), props(_P)
async_link_task_entry(const vertex_program_type& _V, const fragment_program_type& _F, pipeline_properties _P)
: vp(_V), fp(_F), props(std::move(_P))
{}
};
@ -159,8 +159,8 @@ public:
std::vector<u8> tmp_cache;
async_decompile_task_entry(const RSXVertexProgram& _V)
: vp(_V), is_fp(false)
async_decompile_task_entry(RSXVertexProgram _V)
: vp(std::move(_V)), is_fp(false)
{
}

View File

@ -71,9 +71,9 @@ struct ParamItem
const std::string value;
int location;
ParamItem(const std::string& _name, int _location, const std::string& _value = "")
: name(_name)
, value(_value),
ParamItem(std::string _name, int _location, std::string _value = "")
: name(std::move(_name))
, value(std::move(_value)),
location(_location)
{ }
};
@ -84,9 +84,9 @@ struct ParamType
const std::string type;
std::vector<ParamItem> items;
ParamType(const ParamFlag _flag, const std::string& _type)
ParamType(const ParamFlag _flag, std::string _type)
: flag(_flag)
, type(_type)
, type(std::move(_type))
{
}

View File

@ -183,8 +183,8 @@ namespace rsx
deferred_subresource()
{}
deferred_subresource(image_resource_type _res, deferred_request_command _op, u32 _addr, u32 _fmt, u16 _x, u16 _y, u16 _w, u16 _h, u16 _d, const texture_channel_remap_t& _remap) :
external_handle(_res), op(_op), base_address(_addr), gcm_format(_fmt), x(_x), y(_y), width(_w), height(_h), depth(_d), remap(_remap)
deferred_subresource(image_resource_type _res, deferred_request_command _op, u32 _addr, u32 _fmt, u16 _x, u16 _y, u16 _w, u16 _h, u16 _d, texture_channel_remap_t _remap) :
external_handle(_res), op(_op), base_address(_addr), gcm_format(_fmt), x(_x), y(_y), width(_w), height(_h), depth(_d), remap(std::move(_remap))
{}
};

View File

@ -139,7 +139,7 @@ namespace rsx
public:
texture_cache_predictor_entry(key_type _key)
: key(_key)
: key(std::move(_key))
{
reset();
}