Merge branch 'master' of github.com:novacoin-project/novacoin
authorCryptoManiac <balthazar@yandex.ru>
Thu, 31 Mar 2016 17:18:38 +0000 (20:18 +0300)
committerCryptoManiac <balthazar@yandex.ru>
Thu, 31 Mar 2016 17:18:38 +0000 (20:18 +0300)
1  2 
src/main.h

diff --combined src/main.h
@@@ -113,7 -113,7 +113,7 @@@ bool LoadBlockIndex(bool fAllowNew=true
  void PrintBlockTree();
  CBlockIndex* FindBlockByHeight(int nHeight);
  bool ProcessMessages(CNode* pfrom);
 -bool SendMessages(CNode* pto, bool fSendTrickle);
 +bool SendMessages(CNode* pto);
  bool LoadExternalBlockFile(FILE* fileIn);
  
  // Run an instance of the script checking thread
@@@ -620,8 -620,7 +620,7 @@@ public
          try {
              filein >> *this;
          }
-         catch (std::exception &e) {
-             (void)e;
+         catch (const std::exception&) {
              return error("%s() : deserialize or I/O error", BOOST_CURRENT_FUNCTION);
          }
  
@@@ -795,7 -794,7 +794,7 @@@ public
      )
  
  
-     int SetMerkleBranch(const CBlock* pblock=NULL);
+     int SetMerkleBranch(const CBlock* pblock);
      int GetDepthInMainChain(CBlockIndex* &pindexRet) const;
      int GetDepthInMainChain() const { CBlockIndex *pindexRet; return GetDepthInMainChain(pindexRet); }
      bool IsInMainChain() const { return GetDepthInMainChain() > 0; }
@@@ -1096,8 -1095,7 +1095,7 @@@ public
          try {
              filein >> *this;
          }
-         catch (std::exception &e) {
-             (void)e;
+         catch (const std::exception&) {
              return error("%s() : deserialize or I/O error", BOOST_CURRENT_FUNCTION);
          }