mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
fix: function returns by const value
This commit is contained in:
parent
d292ef130c
commit
a5dc187481
14 changed files with 41 additions and 28 deletions
|
|
@ -157,7 +157,7 @@ struct Binding {
|
|||
void reset(keycode);
|
||||
void reset(mousecode);
|
||||
|
||||
inline const std::string text() const {
|
||||
inline std::string text() const {
|
||||
switch (type) {
|
||||
case inputtype::keyboard: {
|
||||
return input_util::to_string(static_cast<keycode>(code));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue