diff --git a/src/audio/OpenALAudioEngine.cpp b/src/audio/OpenALAudioEngine.cpp index 71d2b4af..2a54d4d7 100644 --- a/src/audio/OpenALAudioEngine.cpp +++ b/src/audio/OpenALAudioEngine.cpp @@ -62,7 +62,7 @@ const std::vector& OpenALAudioEngine::devices() while (device && *device != '\0' && next && *next != '\0') { - enumeratedDevices.push_back(device); + enumeratedDevices.emplace_back(device); len = strlen(device); device += (len + 1); @@ -71,7 +71,7 @@ const std::vector& OpenALAudioEngine::devices() } else { - enumeratedDevices.push_back(""); + enumeratedDevices.emplace_back(); } }