diff --git a/src/main.cpp b/src/main.cpp index d4e633d9a2..6c5437d520 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -5833,7 +5833,7 @@ int CDarkSendPool::GetCurrentMasterNode(int mod, int64 nBlockHeight) int CDarkSendPool::GetMasternodeRank(CTxIn& vin, int mod) { - std::vector > vecMasternodeScores; + std::vector > vecMasternodeScores; BOOST_FOREACH(CMasterNode mn, darkSendMasterNodes) { mn.Check(); @@ -5851,7 +5851,7 @@ int CDarkSendPool::GetMasternodeRank(CTxIn& vin, int mod) sort(vecMasternodeScores.rbegin(), vecMasternodeScores.rend(), CompareValueOnly()); unsigned int rank = 0; - BOOST_FOREACH (PAIRTYPE(uint, CTxIn)& s, vecMasternodeScores){ + BOOST_FOREACH (PAIRTYPE(unsigned int, CTxIn)& s, vecMasternodeScores){ rank++; if(s.second == vin) return rank; } diff --git a/src/qt/guiutil.cpp b/src/qt/guiutil.cpp index 9f8dc0ab53..36247c541d 100644 --- a/src/qt/guiutil.cpp +++ b/src/qt/guiutil.cpp @@ -61,7 +61,11 @@ QString dateTimeStr(qint64 nTime) QFont bitcoinAddressFont() { QFont font("Monospace"); +#if QT_VERSION >= 0x040800 + font.setStyleHint(QFont::Monospace); +#else font.setStyleHint(QFont::TypeWriter); +#endif return font; }