Kaynağa Gözat

Small preparations for Q_FOREACH, PAIRTYPE and #include <boost/foreach.hpp> removal

tags/v0.15.1
Jorge Timón 3 yıl önce
ebeveyn
işleme
a5410ac5ec
No account linked to committer's email address
3 değiştirilmiş dosya ile 2 ekleme ve 5 silme
  1. 1
    1
      src/httprpc.cpp
  2. 1
    2
      src/qt/platformstyle.cpp
  3. 0
    2
      src/utilstrencodings.h

+ 1
- 1
src/httprpc.cpp Dosyayı Görüntüle

@@ -19,7 +19,7 @@
#include "utilstrencodings.h"

#include <boost/algorithm/string.hpp> // boost::trim
#include <boost/foreach.hpp> //BOOST_FOREACH
#include <boost/foreach.hpp>

/** WWW-Authenticate to present with 401 Unauthorized response */
static const char* WWW_AUTH_HEADER_DATA = "Basic realm=\"jsonrpc\"";

+ 1
- 2
src/qt/platformstyle.cpp Dosyayı Görüntüle

@@ -48,8 +48,7 @@ void MakeSingleColorImage(QImage& img, const QColor& colorbase)
QIcon ColorizeIcon(const QIcon& ico, const QColor& colorbase)
{
QIcon new_ico;
QSize sz;
Q_FOREACH(sz, ico.availableSizes())
Q_FOREACH(const QSize sz, ico.availableSizes())
{
QImage img(ico.pixmap(sz).toImage());
MakeSingleColorImage(img, colorbase);

+ 0
- 2
src/utilstrencodings.h Dosyayı Görüntüle

@@ -18,8 +18,6 @@
#define UBEGIN(a) ((unsigned char*)&(a))
#define UEND(a) ((unsigned char*)&((&(a))[1]))
#define ARRAYLEN(array) (sizeof(array)/sizeof((array)[0]))

/** This is needed because the foreach macro can't get over the comma in pair<t1, t2> */
#define PAIRTYPE(t1, t2) std::pair<t1, t2>

/** Used by SanitizeString() */

Loading…
İptal
Kaydet