modernize: Reformat ALL the source... again!
[quassel.git] / src / common / dccconfig.cpp
index 7767735..ae9a0e0 100644 (file)
@@ -24,7 +24,7 @@
 
 #include "types.h"
 
-DccConfig::DccConfig(QObject *parent)
+DccConfig::DccConfig(QObjectparent)
     : SyncableObject(parent)
 {
     static auto regTypes = []() -> bool {
@@ -38,8 +38,7 @@ DccConfig::DccConfig(QObject *parent)
     setAllowClientUpdates(true);
 }
 
-
-DccConfig &DccConfig::operator=(const DccConfig &other)
+DccConfig& DccConfig::operator=(const DccConfig& other)
 {
     if (this == &other)
         return *this;
@@ -55,8 +54,7 @@ DccConfig &DccConfig::operator=(const DccConfig &other)
     return *this;
 }
 
-
-bool DccConfig::operator==(const DccConfig &other)
+bool DccConfig::operator==(const DccConfig& other)
 {
     // NOTE: We don't compare the SyncableObject attributes (isInitialized, clientUpdatesAllowed())
     static auto propCount = staticMetaObject.propertyCount();
@@ -70,126 +68,106 @@ bool DccConfig::operator==(const DccConfig &other)
                 return false;
         }
         else if (property(propName) != other.property(propName))
-                return false;
+            return false;
     }
     return true;
 }
 
-
 bool DccConfig::isDccEnabled() const
 {
     return _dccEnabled;
 }
 
-
 void DccConfig::setDccEnabled(bool enabled)
 {
     _dccEnabled = enabled;
 }
 
-
 QHostAddress DccConfig::outgoingIp() const
 {
     return _outgoingIp;
 }
 
-
-void DccConfig::setOutgoingIp(const QHostAddress &outgoingIp)
+void DccConfig::setOutgoingIp(const QHostAddress& outgoingIp)
 {
     _outgoingIp = outgoingIp;
 }
 
-
 DccConfig::IpDetectionMode DccConfig::ipDetectionMode() const
 {
     return _ipDetectionMode;
 }
 
-
 void DccConfig::setIpDetectionMode(DccConfig::IpDetectionMode detectionMode)
 {
     _ipDetectionMode = detectionMode;
 }
 
-
 DccConfig::PortSelectionMode DccConfig::portSelectionMode() const
 {
     return _portSelectionMode;
 }
 
-
 void DccConfig::setPortSelectionMode(DccConfig::PortSelectionMode portSelectionMode)
 {
     _portSelectionMode = portSelectionMode;
 }
 
-
 quint16 DccConfig::minPort() const
 {
     return _minPort;
 }
 
-
 void DccConfig::setMinPort(quint16 port)
 {
     _minPort = port;
 }
 
-
 quint16 DccConfig::maxPort() const
 {
     return _maxPort;
 }
 
-
 void DccConfig::setMaxPort(quint16 port)
 {
     _maxPort = port;
 }
 
-
 int DccConfig::chunkSize() const
 {
     return _chunkSize;
 }
 
-
 void DccConfig::setChunkSize(int chunkSize)
 {
     _chunkSize = chunkSize;
 }
 
-
 int DccConfig::sendTimeout() const
 {
     return _sendTimeout;
 }
 
-
 void DccConfig::setSendTimeout(int timeout)
 {
     _sendTimeout = timeout;
 }
 
-
 bool DccConfig::usePassiveDcc() const
 {
     return _usePassiveDcc;
 }
 
-
 void DccConfig::setUsePassiveDcc(bool use)
 {
     _usePassiveDcc = use;
 }
 
-
 bool DccConfig::useFastSend() const
 {
     return _useFastSend;
 }
 
-
 void DccConfig::setUseFastSend(bool use)
 {
     _useFastSend = use;