Use an anonymous namespace instead of static for some things

This commit is contained in:
Chris Robinson
2018-11-01 20:18:51 -07:00
parent 1ca4e268f6
commit 434582b8e3
+7 -3
View File
@@ -506,6 +506,8 @@ static void pulse_close(pa_threaded_mainloop *loop, pa_context *context, pa_stre
}
namespace {
struct DevMap {
std::string name;
std::string device_name;
@@ -516,7 +518,7 @@ struct DevMap {
{ }
};
static bool checkName(const std::vector<DevMap> &list, const std::string &name)
bool checkName(const std::vector<DevMap> &list, const std::string &name)
{
return std::find_if(list.cbegin(), list.cend(),
[&name](const DevMap &entry) -> bool
@@ -524,8 +526,10 @@ static bool checkName(const std::vector<DevMap> &list, const std::string &name)
) != list.cend();
}
static std::vector<DevMap> PlaybackDevices;
static std::vector<DevMap> CaptureDevices;
std::vector<DevMap> PlaybackDevices;
std::vector<DevMap> CaptureDevices;
} // namespace
struct PulsePlayback {