Browse Source

Renamed next to end for consistency

Paul-Louis Ageneau 6 years ago
parent
commit
bdc5f8b206
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/datachannel.cpp

+ 3 - 3
src/datachannel.cpp

@@ -194,9 +194,9 @@ void DataChannel::processOpenMessage(message_ptr message) {
 	if (message->size() < sizeof(OpenMessage) + size_t(open.labelLength + open.protocolLength))
 		throw std::invalid_argument("DataChannel open message truncated");
 
-	auto next = message->data() + sizeof(OpenMessage);
-	mLabel.assign(reinterpret_cast<const char *>(next), open.labelLength);
-	mProtocol.assign(reinterpret_cast<const char *>(next + open.labelLength), open.protocolLength);
+	auto end = reinterpret_cast<const char *>(message->data() + sizeof(OpenMessage));
+	mLabel.assign(end, open.labelLength);
+	mProtocol.assign(end + open.labelLength, open.protocolLength);
 
 	using std::chrono::milliseconds;
 	mReliability->unordered = (open.reliabilityParameter & 0x80) != 0;