From 3002c95b2c4122890f8a4e4ec7ef933ab68cf3c3 Mon Sep 17 00:00:00 2001 From: chros Date: Mon, 6 Mar 2017 19:41:49 +0000 Subject: [PATCH] Rename couple of arithmetic commands (See #14) --- src/command_ui.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/command_ui.cc b/src/command_ui.cc index a40a4100..54a121d7 100644 --- a/src/command_ui.cc +++ b/src/command_ui.cc @@ -636,10 +636,10 @@ initialize_command_ui() { CMD2_ANY_VALUE("convert.throttle", std::bind(&apply_to_throttle, std::placeholders::_2)); CMD2_ANY_LIST("math.add", std::bind(&apply_math_basic, std::plus(), std::placeholders::_2)); - CMD2_ANY_LIST("math.subtract", std::bind(&apply_math_basic, std::minus(), std::placeholders::_2)); - CMD2_ANY_LIST("math.multiply", std::bind(&apply_math_basic, std::multiplies(), std::placeholders::_2)); - CMD2_ANY_LIST("math.divide", std::bind(&apply_math_basic, std::divides(), std::placeholders::_2)); - CMD2_ANY_LIST("math.modulo", std::bind(&apply_math_basic, std::modulus(), std::placeholders::_2)); + CMD2_ANY_LIST("math.sub", std::bind(&apply_math_basic, std::minus(), std::placeholders::_2)); + CMD2_ANY_LIST("math.mul", std::bind(&apply_math_basic, std::multiplies(), std::placeholders::_2)); + CMD2_ANY_LIST("math.div", std::bind(&apply_math_basic, std::divides(), std::placeholders::_2)); + CMD2_ANY_LIST("math.mod", std::bind(&apply_math_basic, std::modulus(), std::placeholders::_2)); CMD2_ANY_LIST("math.min", std::bind(&apply_arith_basic, std::less(), std::placeholders::_2)); CMD2_ANY_LIST("math.max", std::bind(&apply_arith_basic, std::greater(), std::placeholders::_2));