diff options
author | Remko Tronçon <git@el-tramo.be> | 2011-09-26 17:43:58 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2011-09-26 17:43:58 (GMT) |
commit | 24789b785b21f19c99d9c214ba1b0f5ece8fd09f (patch) | |
tree | 5b89b8f8f2771638ec841981be0b17743e28d7cd /Swift/QtUI/QtChatWindow.cpp | |
parent | b18472bb908a525f38974140c20e08492853855c (diff) | |
download | swift-contrib-24789b785b21f19c99d9c214ba1b0f5ece8fd09f.zip swift-contrib-24789b785b21f19c99d9c214ba1b0f5ece8fd09f.tar.bz2 |
And some more occurrences of uintmax_t.
Diffstat (limited to 'Swift/QtUI/QtChatWindow.cpp')
-rw-r--r-- | Swift/QtUI/QtChatWindow.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Swift/QtUI/QtChatWindow.cpp b/Swift/QtUI/QtChatWindow.cpp index 760e481..e188e6a 100644 --- a/Swift/QtUI/QtChatWindow.cpp +++ b/Swift/QtUI/QtChatWindow.cpp @@ -23,6 +23,7 @@ #include <Swift/Controllers/UIEvents/SendFileUIEvent.h> #include "QtFileTransferJSBridge.h" +#include <boost/cstdint.hpp> #include <boost/format.hpp> #include <boost/lexical_cast.hpp> @@ -471,7 +472,7 @@ std::string QtChatWindow::addAction(const std::string &message, const std::strin return addMessage(" *" + message + "*", senderName, senderIsSelf, label, avatarPath, "font-style:italic ", time); } -std::string formatSize(const uintmax_t bytes) { +std::string formatSize(const boost::uintmax_t bytes) { static const char *siPrefix[] = {"k", "M", "G", "T", "P", "E", "Z", "Y", NULL}; int power = 0; double engBytes = bytes; |