diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2017-07-16 23:42:27 +0200 |
---|---|---|
committer | Cory Fields <cory-nospam-@coryfields.com> | 2017-07-17 11:35:13 -0400 |
commit | 40a0f9fb967a4c7e74d3a6fd4d05744af40fac68 (patch) | |
tree | 720729f59f56a5e50d441a41acc9bf1014e800bb /src/init.cpp | |
parent | 9a1675ee5b27f8634f9917a1f80904c9319739d3 (diff) |
Enable devirtualization opportunities by using the final specifier (C++11)
* Declaring CCoinsViewErrorCatcher final enables devirtualization of two calls
* Declaring CReserveKey final enables devirtualization of one call
Diffstat (limited to 'src/init.cpp')
-rw-r--r-- | src/init.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp index d9b98be739..b64d303bd6 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -133,7 +133,7 @@ bool ShutdownRequested() * chainstate, while keeping user interface out of the common library, which is shared * between bitcoind, and bitcoin-qt and non-server tools. */ -class CCoinsViewErrorCatcher : public CCoinsViewBacked +class CCoinsViewErrorCatcher final : public CCoinsViewBacked { public: CCoinsViewErrorCatcher(CCoinsView* view) : CCoinsViewBacked(view) {} |