We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc509de commit 645d837Copy full SHA for 645d837
source/mqtt/MqttClient.cpp
@@ -181,12 +181,13 @@ namespace Aws
181
if (callbackData->onSubAck)
182
{
183
size_t length = aws_array_list_length(topicSubacks);
184
- Vector<String> topics(length);
+ Vector<String> topics;
185
+ topics.reserve(length);
186
QOS qos = AWS_MQTT_QOS_AT_MOST_ONCE;
187
for (size_t i = 0; i < length; ++i)
188
189
aws_mqtt_topic_subscription *subscription = NULL;
- aws_array_list_get_at_ptr(topicSubacks, reinterpret_cast<void **>(&subscription), i);
190
+ aws_array_list_get_at(topicSubacks, &subscription, i);
191
topics.push_back(
192
String(reinterpret_cast<char *>(subscription->topic.ptr), subscription->topic.len));
193
qos = subscription->qos;
0 commit comments