From 059243f68ec0c2e327a3105a9480f50e5e0b4abf Mon Sep 17 00:00:00 2001 From: Oliver Stöneberg Date: Fri, 31 Jan 2020 02:01:48 +0100 Subject: fixed some clang-tidy warnings (nw) (#6236) * fixed some modernize-redundant-void-arg clang-tidy warnings (nw) * fixed some modernize-use-bool-literals clang-tidy warnings (nw) * fixed some modernize-use-emplace clang-tidy warnings (nw) * fixed some performance-move-const-arg clang-tidy warnings (nw) * fixed some readability-redundant-control-flow clang-tidy warnings (nw) * fixed some readability-redundant-string-cstr clang-tidy warnings (nw) * fixed some performance-unnecessary-value-param clang-tidy warnings (nw) --- src/devices/cpu/uml.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/devices/cpu/uml.cpp') diff --git a/src/devices/cpu/uml.cpp b/src/devices/cpu/uml.cpp index df52f5f1235..5c38c40b6dc 100644 --- a/src/devices/cpu/uml.cpp +++ b/src/devices/cpu/uml.cpp @@ -307,7 +307,7 @@ void uml::instruction::configure(opcode_t op, u8 size, condition_t condition) // parameter //------------------------------------------------- -void uml::instruction::configure(opcode_t op, u8 size, parameter p0, condition_t condition) +void uml::instruction::configure(opcode_t op, u8 size, const parameter &p0, condition_t condition) { // fill in the instruction m_opcode = opcode_t(u8(op)); @@ -327,7 +327,7 @@ void uml::instruction::configure(opcode_t op, u8 size, parameter p0, condition_t // parameters //------------------------------------------------- -void uml::instruction::configure(opcode_t op, u8 size, parameter p0, parameter p1, condition_t condition) +void uml::instruction::configure(opcode_t op, u8 size, const parameter &p0, const parameter &p1, condition_t condition) { // fill in the instruction m_opcode = opcode_t(u8(op)); @@ -348,7 +348,7 @@ void uml::instruction::configure(opcode_t op, u8 size, parameter p0, parameter p // parameters //------------------------------------------------- -void uml::instruction::configure(opcode_t op, u8 size, parameter p0, parameter p1, parameter p2, condition_t condition) +void uml::instruction::configure(opcode_t op, u8 size, const parameter &p0, const parameter &p1, const parameter &p2, condition_t condition) { // fill in the instruction m_opcode = opcode_t(u8(op)); @@ -370,7 +370,7 @@ void uml::instruction::configure(opcode_t op, u8 size, parameter p0, parameter p // parameters //------------------------------------------------- -void uml::instruction::configure(opcode_t op, u8 size, parameter p0, parameter p1, parameter p2, parameter p3, condition_t condition) +void uml::instruction::configure(opcode_t op, u8 size, const parameter &p0, const parameter &p1, const parameter &p2, const parameter &p3, condition_t condition) { // fill in the instruction m_opcode = opcode_t(u8(op)); -- cgit v1.2.3-70-g09d2