mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-26 03:06:17 -05:00
Fix warnings
This commit is contained in:
@@ -58,14 +58,16 @@ std::string TwitchChannel::GetUserID(const TwitchToken &token) const
|
||||
}
|
||||
OBSDataArrayAutoRelease array = obs_data_get_array(res.data, "data");
|
||||
size_t count = obs_data_array_count(array);
|
||||
for (size_t i = 0; i < count; i++) {
|
||||
OBSDataAutoRelease arrayObj = obs_data_array_item(array, i);
|
||||
std::string id = obs_data_get_string(arrayObj, "id");
|
||||
userIDCache[_name] = id;
|
||||
return id;
|
||||
|
||||
if (count == 0) {
|
||||
userIDCache[_name] = "invalid";
|
||||
return "invalid";
|
||||
}
|
||||
userIDCache[_name] = "invalid";
|
||||
return "invalid";
|
||||
|
||||
OBSDataAutoRelease arrayObj = obs_data_array_item(array, 0);
|
||||
const std::string id = obs_data_get_string(arrayObj, "id");
|
||||
userIDCache[_name] = id;
|
||||
return id;
|
||||
}
|
||||
|
||||
static QDate parseRFC3339Date(const std::string &rfc3339Date)
|
||||
|
||||
Reference in New Issue
Block a user