mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-10-03 22:59:18 +00:00
rsx: Apply Clang-Tidy fix "modernize-pass-by-value"
This commit is contained in:
parent
a02a8642b0
commit
cba828384d
4 changed files with 12 additions and 12 deletions
|
@ -146,8 +146,8 @@ public:
|
||||||
const fragment_program_type& fp;
|
const fragment_program_type& fp;
|
||||||
pipeline_properties props;
|
pipeline_properties props;
|
||||||
|
|
||||||
async_link_task_entry(const vertex_program_type& _V, const fragment_program_type& _F, const pipeline_properties& _P)
|
async_link_task_entry(const vertex_program_type& _V, const fragment_program_type& _F, pipeline_properties _P)
|
||||||
: vp(_V), fp(_F), props(_P)
|
: vp(_V), fp(_F), props(std::move(_P))
|
||||||
{}
|
{}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -159,8 +159,8 @@ public:
|
||||||
|
|
||||||
std::vector<u8> tmp_cache;
|
std::vector<u8> tmp_cache;
|
||||||
|
|
||||||
async_decompile_task_entry(const RSXVertexProgram& _V)
|
async_decompile_task_entry(RSXVertexProgram _V)
|
||||||
: vp(_V), is_fp(false)
|
: vp(std::move(_V)), is_fp(false)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -71,9 +71,9 @@ struct ParamItem
|
||||||
const std::string value;
|
const std::string value;
|
||||||
int location;
|
int location;
|
||||||
|
|
||||||
ParamItem(const std::string& _name, int _location, const std::string& _value = "")
|
ParamItem(std::string _name, int _location, std::string _value = "")
|
||||||
: name(_name)
|
: name(std::move(_name))
|
||||||
, value(_value),
|
, value(std::move(_value)),
|
||||||
location(_location)
|
location(_location)
|
||||||
{ }
|
{ }
|
||||||
};
|
};
|
||||||
|
@ -84,9 +84,9 @@ struct ParamType
|
||||||
const std::string type;
|
const std::string type;
|
||||||
std::vector<ParamItem> items;
|
std::vector<ParamItem> items;
|
||||||
|
|
||||||
ParamType(const ParamFlag _flag, const std::string& _type)
|
ParamType(const ParamFlag _flag, std::string _type)
|
||||||
: flag(_flag)
|
: flag(_flag)
|
||||||
, type(_type)
|
, type(std::move(_type))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -183,8 +183,8 @@ namespace rsx
|
||||||
deferred_subresource()
|
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) :
|
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(_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))
|
||||||
{}
|
{}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -139,7 +139,7 @@ namespace rsx
|
||||||
|
|
||||||
public:
|
public:
|
||||||
texture_cache_predictor_entry(key_type _key)
|
texture_cache_predictor_entry(key_type _key)
|
||||||
: key(_key)
|
: key(std::move(_key))
|
||||||
{
|
{
|
||||||
reset();
|
reset();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue