Remove using namespace std from header file

It's considered bad form to import things into the global namespace in a
header. Put it in the cpp files where it is needed instead.
This commit is contained in:
Wladimir J. van der Laan
2014-06-16 16:30:38 +02:00
parent 807691ca96
commit 09eb201b1b
9 changed files with 21 additions and 13 deletions

View File

@@ -17,6 +17,7 @@
#include <QDebug>
#include <QSslCertificate>
using namespace std;
class SSLVerifyError : public std::runtime_error
{

View File

@@ -24,7 +24,7 @@ public:
PaymentRequestPlus() { }
bool parse(const QByteArray& data);
bool SerializeToString(string* output) const;
bool SerializeToString(std::string* output) const;
bool IsInitialized() const;
QString getPKIType() const;

View File

@@ -44,6 +44,7 @@
#include <QUrlQuery>
#endif
using namespace std;
using namespace boost;
const int BITCOIN_IPC_CONNECT_TIMEOUT = 1000; // milliseconds

View File

@@ -18,6 +18,8 @@
#include <stdint.h>
#include <string>
using namespace std;
QString TransactionDesc::FormatTxStatus(const CWalletTx& wtx)
{
AssertLockHeld(cs_main);

View File

@@ -24,6 +24,8 @@
#include <QSet>
#include <QTimer>
using namespace std;
WalletModel::WalletModel(CWallet *wallet, OptionsModel *optionsModel, QObject *parent) :
QObject(parent), wallet(wallet), optionsModel(optionsModel), addressTableModel(0),
transactionTableModel(0),