diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2023-02-24 08:59:46 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-02-24 08:59:46 +0100 |
| commit | 83bca7d6861a701e8ba383a93076f346db393a33 (patch) | |
| tree | 2f16b71ef17003d9eac0138f6ebb2dad02a9d99c /editor/inspect.cpp | |
| parent | a68822c7e24d818b984ef6889c36d3b39202c887 (diff) | |
a
Diffstat (limited to 'editor/inspect.cpp')
| -rw-r--r-- | editor/inspect.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/editor/inspect.cpp b/editor/inspect.cpp index cd2904fc..aa17029a 100644 --- a/editor/inspect.cpp +++ b/editor/inspect.cpp @@ -53,11 +53,7 @@ int corrade_string_resize_callback(ImGuiInputTextCallbackData* data) { auto* my_str = reinterpret_cast<String*>(data->UserData); fm_assert(my_str->begin() == data->Buf); - String tmp = std::move(*my_str); *my_str = String{ValueInit, (std::size_t)data->BufSize}; - auto len = std::min(tmp.size(), my_str->size()); - for (std::size_t i = 0; i < len; i++) - (*my_str)[i] = tmp[i]; data->Buf = my_str->begin(); } return 0; |
