summaryrefslogtreecommitdiffstats
path: root/src/core/internal_network
diff options
context:
space:
mode:
authorFearlessTobi <thm.frey@gmail.com>2022-09-12 22:39:18 +0200
committerFearlessTobi <thm.frey@gmail.com>2022-09-20 19:36:32 +0200
commit4213f1c126afda9c5235c868ded4e7d95438bffc (patch)
treeafc604f144281afbd45ce8a757f1d1fbb020018b /src/core/internal_network
parentdedicated_room: fix token padding ... (diff)
downloadyuzu-4213f1c126afda9c5235c868ded4e7d95438bffc.tar
yuzu-4213f1c126afda9c5235c868ded4e7d95438bffc.tar.gz
yuzu-4213f1c126afda9c5235c868ded4e7d95438bffc.tar.bz2
yuzu-4213f1c126afda9c5235c868ded4e7d95438bffc.tar.lz
yuzu-4213f1c126afda9c5235c868ded4e7d95438bffc.tar.xz
yuzu-4213f1c126afda9c5235c868ded4e7d95438bffc.tar.zst
yuzu-4213f1c126afda9c5235c868ded4e7d95438bffc.zip
Diffstat (limited to 'src/core/internal_network')
-rw-r--r--src/core/internal_network/network_interface.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/internal_network/network_interface.cpp b/src/core/internal_network/network_interface.cpp
index 858ae1cfb..057fd3661 100644
--- a/src/core/internal_network/network_interface.cpp
+++ b/src/core/internal_network/network_interface.cpp
@@ -188,7 +188,7 @@ std::vector<NetworkInterface> GetAvailableNetworkInterfaces() {
std::optional<NetworkInterface> GetSelectedNetworkInterface() {
const auto& selected_network_interface = Settings::values.network_interface.GetValue();
const auto network_interfaces = Network::GetAvailableNetworkInterfaces();
- if (network_interfaces.size() == 0) {
+ if (network_interfaces.empty()) {
LOG_ERROR(Network, "GetAvailableNetworkInterfaces returned no interfaces");
return std::nullopt;
}
@@ -209,7 +209,7 @@ std::optional<NetworkInterface> GetSelectedNetworkInterface() {
void SelectFirstNetworkInterface() {
const auto network_interfaces = Network::GetAvailableNetworkInterfaces();
- if (network_interfaces.size() == 0) {
+ if (network_interfaces.empty()) {
return;
}