summaryrefslogtreecommitdiff
path: root/keybinds.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'keybinds.cpp')
-rw-r--r--keybinds.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/keybinds.cpp b/keybinds.cpp
index 3a431f0..64d3fc8 100644
--- a/keybinds.cpp
+++ b/keybinds.cpp
@@ -15,10 +15,7 @@ KeybindsModule::KeybindsModule(CommandsModule& commandsModule, Config& cfg, Glob
globals(globals),
cfg(cfg)
{
- CommandArgType* bindArgs = new CommandArgType[2];
- bindArgs[0] = STR;
- bindArgs[1] = STR_REST;
- commandsModule.addCommand("bind", &KeybindsModule::bind, 2, bindArgs, this);
+ commandsModule.addCommand("bind", &KeybindsModule::bind, 2, {STR, STR_REST}, this);
this->updateMousePos = updateMousePos;
}