2 files changed, 6 insertions, 6 deletions
diff --git a/src/LoginPage.cc b/src/LoginPage.cc
index e3f51484..24bfd143 100644
--- a/src/LoginPage.cc
+++ b/src/LoginPage.cc
@@ -21,9 +21,9 @@
#include "LoginPage.h"
LoginPage::LoginPage(QSharedPointer<MatrixClient> client, QWidget *parent)
- : QWidget(parent)
- , inferredServerAddress_()
- , client_{client}
+ : QWidget(parent)
+ , inferredServerAddress_()
+ , client_{client}
{
setStyleSheet("background-color: #f9f9f9");
@@ -212,7 +212,7 @@ void LoginPage::versionError(QString error)
QString mxidAddress = matrixid_input_->text().split(":").at(1);
if (currentServer.host() == inferredServerAddress_ && !currentServer.host().startsWith("matrix")) {
error_label_->setText("");
- currentServer.setHost(QString("matrix.")+currentServer.host());
+ currentServer.setHost(QString("matrix.") + currentServer.host());
serverInput_->setText(currentServer.host());
client_->setServer(currentServer.host());
client_->versions();
diff --git a/src/Versions.cc b/src/Versions.cc
index 48895645..3d7c16d8 100644
--- a/src/Versions.cc
+++ b/src/Versions.cc
@@ -35,7 +35,7 @@ void VersionsResponse::deserialize(const QJsonDocument &data)
throw DeserializationException("Versions: missing version list");
auto versions = object.value("versions").toArray();
- for (auto const &elem: versions) {
+ for (auto const &elem : versions) {
QString str = elem.toString();
QRegExp rx("r(\\d+)\\.(\\d+)\\.(\\d+)");
@@ -53,7 +53,7 @@ void VersionsResponse::deserialize(const QJsonDocument &data)
bool VersionsResponse::isVersionSupported(unsigned int major, unsigned int minor, unsigned int patch)
{
- for (auto &v: supported_versions_) {
+ for (auto &v : supported_versions_) {
if (v.major_ == major && v.minor_ == minor && v.patch_ >= patch)
return true;
}
|