mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-27 21:19:18 +00:00
Use base::get_pretty_memory_size() to show undo item memory size
This commit is contained in:
parent
1e0fd35413
commit
d13862599e
@ -20,7 +20,7 @@
|
||||
#include "app/modules/gui.h"
|
||||
#include "app/modules/palettes.h"
|
||||
#include "base/bind.h"
|
||||
#include "base/convert_to.h"
|
||||
#include "base/mem_utils.h"
|
||||
#include "doc/context_observer.h"
|
||||
#include "doc/documents_observer.h"
|
||||
#include "doc/site.h"
|
||||
@ -42,7 +42,7 @@ public:
|
||||
(state ?
|
||||
static_cast<Cmd*>(state->cmd())->label()
|
||||
#if _DEBUG
|
||||
+ std::string(" ") + base::convert_to<std::string>(int(static_cast<Cmd*>(state->cmd())->memSize()))
|
||||
+ std::string(" ") + base::get_pretty_memory_size(static_cast<Cmd*>(state->cmd())->memSize())
|
||||
#endif
|
||||
: std::string("Initial State"))),
|
||||
m_state(state) {
|
||||
|
Loading…
Reference in New Issue
Block a user