From aacc4bcb4a487871daae6717f77605aaba444341 Mon Sep 17 00:00:00 2001 From: Marc Deop Date: Sat, 2 Mar 2019 12:26:57 +0100 Subject: style: apply .clang-format to all .cpp and .h files --- lib/connectiondata.h | 39 +++++++++++++++++++-------------------- 1 file changed, 19 insertions(+), 20 deletions(-) (limited to 'lib/connectiondata.h') diff --git a/lib/connectiondata.h b/lib/connectiondata.h index 7a2f2e90..fcb67e2d 100644 --- a/lib/connectiondata.h +++ b/lib/connectiondata.h @@ -13,7 +13,7 @@ * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #pragma once @@ -24,32 +24,31 @@ class QNetworkAccessManager; -namespace QMatrixClient -{ +namespace QMatrixClient { class ConnectionData { public: - explicit ConnectionData(QUrl baseUrl); - virtual ~ConnectionData(); + explicit ConnectionData(QUrl baseUrl); + virtual ~ConnectionData(); - QByteArray accessToken() const; - QUrl baseUrl() const; - const QString& deviceId() const; + QByteArray accessToken() const; + QUrl baseUrl() const; + const QString& deviceId() const; - QNetworkAccessManager* nam() const; - void setBaseUrl(QUrl baseUrl); - void setToken(QByteArray accessToken); - void setHost( QString host ); - void setPort( int port ); - void setDeviceId(const QString& deviceId); + QNetworkAccessManager* nam() const; + void setBaseUrl(QUrl baseUrl); + void setToken(QByteArray accessToken); + void setHost(QString host); + void setPort(int port); + void setDeviceId(const QString& deviceId); - QString lastEvent() const; - void setLastEvent( QString identifier ); + QString lastEvent() const; + void setLastEvent(QString identifier); - QByteArray generateTxnId() const; + QByteArray generateTxnId() const; private: - struct Private; - std::unique_ptr d; + struct Private; + std::unique_ptr d; }; -} // namespace QMatrixClient +} // namespace QMatrixClient -- cgit v1.2.3 From c05ade838f0fce81f2bbe80a3295618a8a26ff52 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Fri, 2 Aug 2019 19:59:40 +0900 Subject: Apply the new brace wrapping to source files --- lib/connectiondata.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lib/connectiondata.h') diff --git a/lib/connectiondata.h b/lib/connectiondata.h index 6f9f090c..9b579b1c 100644 --- a/lib/connectiondata.h +++ b/lib/connectiondata.h @@ -24,10 +24,8 @@ class QNetworkAccessManager; -namespace QMatrixClient -{ -class ConnectionData -{ +namespace QMatrixClient { +class ConnectionData { public: explicit ConnectionData(QUrl baseUrl); virtual ~ConnectionData(); -- cgit v1.2.3