Skip to content

Commit 4e852e5

Browse files
committed
Merge pull request #5186
771d500 minor cleanup: include orders, end comments etc. (Philip Kaufmann)
2 parents 84d26d3 + 771d500 commit 4e852e5

File tree

9 files changed

+25
-24
lines changed

9 files changed

+25
-24
lines changed

src/Makefile.test.include

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ BITCOIN_TESTS =\
4242
test/bloom_tests.cpp \
4343
test/checkblock_tests.cpp \
4444
test/Checkpoints_tests.cpp \
45-
test/compress_tests.cpp \
4645
test/coins_tests.cpp \
46+
test/compress_tests.cpp \
4747
test/crypto_tests.cpp \
4848
test/DoS_tests.cpp \
4949
test/getarg_tests.cpp \
@@ -58,17 +58,17 @@ BITCOIN_TESTS =\
5858
test/rpc_tests.cpp \
5959
test/script_P2SH_tests.cpp \
6060
test/script_tests.cpp \
61+
test/scriptnum_tests.cpp \
6162
test/serialize_tests.cpp \
63+
test/sighash_tests.cpp \
6264
test/sigopcount_tests.cpp \
6365
test/skiplist_tests.cpp \
6466
test/test_bitcoin.cpp \
6567
test/timedata_tests.cpp \
6668
test/transaction_tests.cpp \
6769
test/uint256_tests.cpp \
6870
test/univalue_tests.cpp \
69-
test/util_tests.cpp \
70-
test/scriptnum_tests.cpp \
71-
test/sighash_tests.cpp
71+
test/util_tests.cpp
7272

7373
if ENABLE_WALLET
7474
BITCOIN_TESTS += \

src/ecwrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Copyright (c) 2009-2014 The Bitcoin developers
2-
// Distributed under the MIT/X11 software license, see the accompanying
2+
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

55
#include "ecwrapper.h"

src/ecwrapper.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Copyright (c) 2009-2014 The Bitcoin developers
2-
// Distributed under the MIT/X11 software license, see the accompanying
2+
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

55
#ifndef BITCOIN_EC_WRAPPER_H
@@ -43,4 +43,4 @@ class CECKey {
4343
static bool SanityCheck();
4444
};
4545

46-
#endif
46+
#endif // BITCOIN_EC_WRAPPER_H

src/main.h

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,15 @@
3939
#include <boost/unordered_map.hpp>
4040

4141
class CBlockIndex;
42+
class CBlockTreeDB;
4243
class CBloomFilter;
4344
class CInv;
45+
class CScriptCheck;
46+
class CValidationInterface;
47+
class CValidationState;
48+
49+
struct CBlockTemplate;
50+
struct CNodeStateStats;
4451

4552
/** The maximum allowed size for a serialized block, in bytes (network rule) */
4653
static const unsigned int MAX_BLOCK_SIZE = 1000000;
@@ -128,15 +135,6 @@ extern CBlockIndex *pindexBestHeader;
128135
// Minimum disk space required - used in CheckDiskSpace()
129136
static const uint64_t nMinDiskSpace = 52428800;
130137

131-
132-
class CBlockTreeDB;
133-
class CScriptCheck;
134-
class CValidationState;
135-
class CValidationInterface;
136-
struct CNodeStateStats;
137-
138-
struct CBlockTemplate;
139-
140138
/** Register a wallet to receive updates from core */
141139
void RegisterValidationInterface(CValidationInterface* pwalletIn);
142140
/** Unregister a wallet from core */

src/qt/optionsdialog.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,13 @@
77

88
#include <QDialog>
99

10-
class QDataWidgetMapper;
1110
class OptionsModel;
1211
class QValidatedLineEdit;
1312

13+
QT_BEGIN_NAMESPACE
14+
class QDataWidgetMapper;
15+
QT_END_NAMESPACE
16+
1417
namespace Ui {
1518
class OptionsDialog;
1619
}

src/rpcblockchain.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ struct CompareBlocksByHeight
474474
bool operator()(const CBlockIndex* a, const CBlockIndex* b) const
475475
{
476476
/* Make sure that unequal blocks with the same height do not compare
477-
equal. Use the pointers themselves to make a distinction. */
477+
equal. Use the pointers themselves to make a distinction. */
478478

479479
if (a->nHeight != b->nHeight)
480480
return (a->nHeight > b->nHeight);

src/rpcserver.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
#define _BITCOINRPC_SERVER_H_
88

99
#include "amount.h"
10-
#include "uint256.h"
1110
#include "rpcprotocol.h"
11+
#include "uint256.h"
1212

1313
#include <list>
1414
#include <map>

src/txmempool.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ class CMinerPolicyEstimator
332332
size_t numEntries;
333333
filein >> numEntries;
334334
if (numEntries <= 0 || numEntries > 10000)
335-
throw runtime_error("Corrupt estimates file. Must have between 1 and 10k entires.");
335+
throw runtime_error("Corrupt estimates file. Must have between 1 and 10k entires.");
336336

337337
std::vector<CBlockAverage> fileHistory;
338338

@@ -343,8 +343,8 @@ class CMinerPolicyEstimator
343343
fileHistory.push_back(entry);
344344
}
345345

346-
//Now that we've processed the entire fee estimate data file and not
347-
//thrown any errors, we can copy it to our history
346+
// Now that we've processed the entire fee estimate data file and not
347+
// thrown any errors, we can copy it to our history
348348
nBestSeenHeight = nFileBestSeenHeight;
349349
history = fileHistory;
350350
assert(history.size() > 0);

src/utilstrencodings.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77

88
#include "tinyformat.h"
99

10-
#include <errno.h>
11-
#include <limits>
1210
#include <cstdlib>
1311
#include <cstring>
12+
#include <errno.h>
13+
#include <limits>
1414

1515
using namespace std;
1616

0 commit comments

Comments
 (0)