Paul-Louis Ageneau преди 6 години
родител
ревизия
d2a308464d
променени са 1 файла, в които са добавени 7 реда и са изтрити 8 реда
  1. 7 8
      src/peerconnection.cpp

+ 7 - 8
src/peerconnection.cpp

@@ -35,8 +35,7 @@ using std::shared_ptr;
 PeerConnection::PeerConnection(const IceConfiguration &config)
     : mConfig(config), mCertificate(make_certificate("libdatachannel")), mMid("0") {}
 
-PeerConnection::~PeerConnection() {
-}
+PeerConnection::~PeerConnection() {}
 
 const IceConfiguration *PeerConnection::config() const { return &mConfig; }
 
@@ -110,9 +109,9 @@ void PeerConnection::initDtlsTransport() {
 }
 
 void PeerConnection::initSctpTransport() {
-  mSctpTransport = std::make_shared<SctpTransport>(
-      mDtlsTransport, std::bind(&PeerConnection::openDataChannels, this),
-      std::bind(&PeerConnection::forwardMessage, this, _1));
+	mSctpTransport = std::make_shared<SctpTransport>(
+	    mDtlsTransport, std::bind(&PeerConnection::openDataChannels, this),
+	    std::bind(&PeerConnection::forwardMessage, this, _1));
 }
 
 bool PeerConnection::checkFingerprint(const std::string &fingerprint) const {
@@ -133,9 +132,9 @@ void PeerConnection::forwardMessage(message_ptr message) {
 }
 
 void PeerConnection::openDataChannels(void) {
-  for (auto it = mDataChannels.begin(); it != mDataChannels.end(); ++it) {
-    it->second->open();
-  }
+	for (auto it = mDataChannels.begin(); it != mDataChannels.end(); ++it) {
+		it->second->open();
+	}
 }
 
 void PeerConnection::triggerLocalDescription() {