diff options
author | Christian Stenger <christian.stenger@qt.io> | 2019-11-12 13:28:42 +0100 |
---|---|---|
committer | Christian Stenger <christian.stenger@qt.io> | 2019-11-12 12:36:08 +0000 |
commit | 2f42e11ac6bcb2846626b04b440dfaf00028d9ab (patch) | |
tree | 7cf7e81940761a5655d08b85dceb1452b38d1634 /src/plugins/git/gerrit/authenticationdialog.cpp | |
parent | 0120e462b268957171d8542b72b0ffb4a8777f7b (diff) | |
download | qt-creator-2f42e11ac6bcb2846626b04b440dfaf00028d9ab.tar.gz |
Fix compile before current Qt dev
Amends 0120e462b268957171d8542b72b0ffb4a8777f7b.
Change-Id: If9f443c03009bf8728497f10c8fb81f37fa1a63d
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/git/gerrit/authenticationdialog.cpp')
-rw-r--r-- | src/plugins/git/gerrit/authenticationdialog.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/git/gerrit/authenticationdialog.cpp b/src/plugins/git/gerrit/authenticationdialog.cpp index 3104676daf..bb9d267ca7 100644 --- a/src/plugins/git/gerrit/authenticationdialog.cpp +++ b/src/plugins/git/gerrit/authenticationdialog.cpp @@ -39,6 +39,8 @@ #include <QTextStream> #include <QTimer> +using namespace Qt; + namespace Gerrit { namespace Internal { @@ -150,10 +152,10 @@ bool AuthenticationDialog::setupCredentials() replaceEntry(line, "login", user); replaceEntry(line, "password", password); } - out << line << Qt::endl; + out << line << endl; } if (!found) - out << "machine " << m_server->host << " login " << user << " password " << password << Qt::endl; + out << "machine " << m_server->host << " login " << user << " password " << password << endl; Utils::FileSaver saver(m_netrcFileName, QFile::WriteOnly | QFile::Truncate | QFile::Text); saver.write(netrcContents.toUtf8()); return saver.finalize(); |