mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 22:50:59 +01:00
Cleanup code using forward declarations.
Use misc methods of avoiding unnecesary header includes. Replace int typedefs with int##_t from stdint.h. Replace PRI64[xdu] with PRI[xdu]64 from inttypes.h. Normalize QT_VERSION ifs where possible. Resolve some indirect dependencies as direct ones. Remove extern declarations from .cpp files.
This commit is contained in:
@@ -4,17 +4,17 @@
|
||||
|
||||
#include "intro.h"
|
||||
#include "ui_intro.h"
|
||||
|
||||
#include "util.h"
|
||||
|
||||
#include <boost/filesystem.hpp>
|
||||
#include <QFileDialog>
|
||||
#include <QSettings>
|
||||
#include <QMessageBox>
|
||||
|
||||
#include <boost/filesystem.hpp>
|
||||
|
||||
/* Minimum free space (in bytes) needed for data directory */
|
||||
static const uint64 GB_BYTES = 1000000000LL;
|
||||
static const uint64 BLOCK_CHAIN_SIZE = 10LL * GB_BYTES;
|
||||
static const uint64_t GB_BYTES = 1000000000LL;
|
||||
static const uint64_t BLOCK_CHAIN_SIZE = 10LL * GB_BYTES;
|
||||
|
||||
/* Check free space asynchronously to prevent hanging the UI thread.
|
||||
|
||||
@@ -60,7 +60,7 @@ void FreespaceChecker::check()
|
||||
namespace fs = boost::filesystem;
|
||||
QString dataDirStr = intro->getPathToCheck();
|
||||
fs::path dataDir = fs::path(dataDirStr.toStdString());
|
||||
uint64 freeBytesAvailable = 0;
|
||||
uint64_t freeBytesAvailable = 0;
|
||||
int replyStatus = ST_OK;
|
||||
QString replyMessage = tr("A new data directory will be created.");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user