Skip to content

Commit

Permalink
Avoid repeating the return type
Browse files Browse the repository at this point in the history
  • Loading branch information
kcat committed Mar 26, 2024
1 parent 10a8756 commit 7dcb770
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion alc/backends/loopback.cpp
Expand Up @@ -64,7 +64,7 @@ bool LoopbackBackendFactory::querySupport(BackendType)
{ return true; }

auto LoopbackBackendFactory::enumerate(BackendType) -> std::vector<std::string>
{ return std::vector<std::string>(); }
{ return {}; }

BackendPtr LoopbackBackendFactory::createBackend(DeviceBase *device, BackendType)
{ return BackendPtr{new LoopbackBackend{device}}; }
Expand Down
2 changes: 1 addition & 1 deletion alc/backends/null.cpp
Expand Up @@ -160,7 +160,7 @@ auto NullBackendFactory::enumerate(BackendType type) -> std::vector<std::string>
case BackendType::Capture:
break;
}
return std::vector<std::string>();
return {};
}

BackendPtr NullBackendFactory::createBackend(DeviceBase *device, BackendType type)
Expand Down
2 changes: 1 addition & 1 deletion alc/backends/oboe.cpp
Expand Up @@ -353,7 +353,7 @@ auto OboeBackendFactory::enumerate(BackendType type) -> std::vector<std::string>
case BackendType::Capture:
return std::vector{std::string{GetDeviceName()}};
}
return std::vector<std::string>();
return {};
}

BackendPtr OboeBackendFactory::createBackend(DeviceBase *device, BackendType type)
Expand Down
2 changes: 1 addition & 1 deletion alc/backends/opensl.cpp
Expand Up @@ -916,7 +916,7 @@ auto OSLBackendFactory::enumerate(BackendType type) -> std::vector<std::string>
case BackendType::Capture:
return std::vector{std::string{GetDeviceName()}};
}
return std::vector<std::string>();
return {};
}

BackendPtr OSLBackendFactory::createBackend(DeviceBase *device, BackendType type)
Expand Down
2 changes: 1 addition & 1 deletion alc/backends/portaudio.cpp
Expand Up @@ -419,7 +419,7 @@ auto PortBackendFactory::enumerate(BackendType type) -> std::vector<std::string>
case BackendType::Capture:
return std::vector{std::string{GetDefaultName()}};
}
return std::vector<std::string>();
return {};
}

BackendPtr PortBackendFactory::createBackend(DeviceBase *device, BackendType type)
Expand Down
2 changes: 1 addition & 1 deletion alc/backends/sndio.cpp
Expand Up @@ -528,7 +528,7 @@ auto SndIOBackendFactory::enumerate(BackendType type) -> std::vector<std::string
case BackendType::Capture:
return std::vector{std::string{GetDefaultName()}};
}
return std::vector<std::string>();
return {};
}

BackendPtr SndIOBackendFactory::createBackend(DeviceBase *device, BackendType type)
Expand Down
2 changes: 1 addition & 1 deletion alc/backends/solaris.cpp
Expand Up @@ -287,7 +287,7 @@ auto SolarisBackendFactory::enumerate(BackendType type) -> std::vector<std::stri
case BackendType::Capture:
break;
}
return std::vector<std::string>();
return {};
}

BackendPtr SolarisBackendFactory::createBackend(DeviceBase *device, BackendType type)
Expand Down
2 changes: 1 addition & 1 deletion alc/backends/wave.cpp
Expand Up @@ -385,7 +385,7 @@ auto WaveBackendFactory::enumerate(BackendType type) -> std::vector<std::string>
case BackendType::Capture:
break;
}
return std::vector<std::string>();
return {};
}

BackendPtr WaveBackendFactory::createBackend(DeviceBase *device, BackendType type)
Expand Down

0 comments on commit 7dcb770

Please sign in to comment.