[aseprite] 20/64: Use base::get_pretty_memory_size() to show undo item memory size
Tobias Hansen
thansen at moszumanska.debian.org
Tue Jun 21 14:43:01 UTC 2016
This is an automated email from the git hooks/post-receive script.
thansen pushed a commit to branch master
in repository aseprite.
commit d13862599e224517b8af20ac7eed8c41200ec04d
Author: David Capello <davidcapello at gmail.com>
Date: Mon May 9 18:19:49 2016 -0300
Use base::get_pretty_memory_size() to show undo item memory size
---
src/app/commands/cmd_undo_history.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/app/commands/cmd_undo_history.cpp b/src/app/commands/cmd_undo_history.cpp
index c31fefa..c75a7d2 100644
--- a/src/app/commands/cmd_undo_history.cpp
+++ b/src/app/commands/cmd_undo_history.cpp
@@ -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) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git
More information about the Pkg-games-commits
mailing list