aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/script/standard.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/script/standard.cpp b/src/script/standard.cpp
index 39dd4ff39f..251be8d271 100644
--- a/src/script/standard.cpp
+++ b/src/script/standard.cpp
@@ -290,14 +290,11 @@ public:
return CScript() << CScript::EncodeOP_N(id.version) << std::vector<unsigned char>(id.program, id.program + id.length);
}
};
-
-const CScriptVisitor g_script_visitor;
-
} // namespace
CScript GetScriptForDestination(const CTxDestination& dest)
{
- return boost::apply_visitor(::g_script_visitor, dest);
+ return boost::apply_visitor(CScriptVisitor{}, dest);
}
CScript GetScriptForRawPubKey(const CPubKey& pubKey)