aboutsummaryrefslogtreecommitdiff
path: root/src/base58.cpp
diff options
context:
space:
mode:
authorPhilip Kaufmann <phil.kaufmann@t-online.de>2014-06-24 14:17:43 +0200
committerPhilip Kaufmann <phil.kaufmann@t-online.de>2014-06-26 10:36:57 +0200
commite10dcf27b4fb324a85b5650c7acd2ea5a52e822f (patch)
tree6725fc2d632622ef5fbdc7b480996adb9b9a5fba /src/base58.cpp
parent343feecf562a39e7d898ece2fd745fcb9d4c90e9 (diff)
ensure clean and consistent "namespace" usage
- remove some missplaced ; - ensure end of a namespace is clearly visible - use same formatting when using namespace
Diffstat (limited to 'src/base58.cpp')
-rw-r--r--src/base58.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/base58.cpp b/src/base58.cpp
index 1bd64684e5..c9e91beef1 100644
--- a/src/base58.cpp
+++ b/src/base58.cpp
@@ -186,6 +186,7 @@ int CBase58Data::CompareTo(const CBase58Data& b58) const {
}
namespace {
+
class CBitcoinAddressVisitor : public boost::static_visitor<bool> {
private:
CBitcoinAddress *addr;
@@ -196,7 +197,8 @@ namespace {
bool operator()(const CScriptID &id) const { return addr->Set(id); }
bool operator()(const CNoDestination &no) const { return false; }
};
-};
+
+} // anon namespace
bool CBitcoinAddress::Set(const CKeyID &id) {
SetData(Params().Base58Prefix(CChainParams::PUBKEY_ADDRESS), &id, 20);