aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends/jack.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-15 05:33:02 -0800
committerChris Robinson <[email protected]>2018-11-15 05:33:02 -0800
commit9d9d626d99e2514c03a783140fa11076a4580607 (patch)
tree090720e62c7c562d7a61d08d185bf6cb8ec5e6a4 /Alc/backends/jack.cpp
parent08bee7cb586abe53ebd36d4d54160a12bf9d6dfa (diff)
Avoid some more uses of al_string
Diffstat (limited to 'Alc/backends/jack.cpp')
-rw-r--r--Alc/backends/jack.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/Alc/backends/jack.cpp b/Alc/backends/jack.cpp
index 83f591fe..4aa6cd78 100644
--- a/Alc/backends/jack.cpp
+++ b/Alc/backends/jack.cpp
@@ -102,7 +102,7 @@ static ALCboolean jack_load(void)
#ifdef HAVE_DYNLOAD
if(!jack_handle)
{
- al_string missing_funcs = AL_STRING_INIT_STATIC();
+ std::string missing_funcs;
#ifdef _WIN32
#define JACKLIB "libjack.dll"
@@ -121,7 +121,7 @@ static ALCboolean jack_load(void)
p##f = reinterpret_cast<decltype(p##f)>(GetSymbol(jack_handle, #f)); \
if(p##f == nullptr) { \
error = ALC_TRUE; \
- alstr_append_cstr(&missing_funcs, "\n" #f); \
+ missing_funcs += "\n" #f; \
} \
} while(0)
JACK_FUNCS(LOAD_FUNC);
@@ -133,11 +133,10 @@ static ALCboolean jack_load(void)
if(error)
{
- WARN("Missing expected functions:%s\n", alstr_get_cstr(missing_funcs));
+ WARN("Missing expected functions:%s\n", missing_funcs.c_str());
CloseLib(jack_handle);
jack_handle = NULL;
}
- alstr_reset(&missing_funcs);
}
#endif