diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-08-10 16:38:33 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-08-12 09:13:51 +0100 |
| commit | b1dc9c3a2f7e55c9afc5bf2d5b465371b048e14f (patch) | |
| tree | 9968238c6c0511f044e6fcdb4abcc08b5eb28f27 /src/lib/cinema_kdms.cc | |
| parent | 4a0ae92e28d7d1f0dd648d1b620efc324fdef161 (diff) | |
Remove all use of stringstream in an attempt to fix
the suspected thread-unsafe crash bugs on OS X.
Diffstat (limited to 'src/lib/cinema_kdms.cc')
| -rw-r--r-- | src/lib/cinema_kdms.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/cinema_kdms.cc b/src/lib/cinema_kdms.cc index 299cdf94e..c05dd6138 100644 --- a/src/lib/cinema_kdms.cc +++ b/src/lib/cinema_kdms.cc @@ -174,11 +174,11 @@ CinemaKDMs::email ( boost::algorithm::replace_all (body, "$END_TIME", name_values['t']); boost::algorithm::replace_all (body, "$CINEMA_NAME", i.cinema->name); - locked_stringstream screens; + string screens; BOOST_FOREACH (ScreenKDM const & j, i.screen_kdms) { - screens << j.screen->name << ", "; + screens += j.screen->name + ", "; } - boost::algorithm::replace_all (body, "$SCREENS", screens.str().substr (0, screens.str().length() - 2)); + boost::algorithm::replace_all (body, "$SCREENS", screens.substr (0, screens.length() - 2)); Emailer email (config->kdm_from(), i.cinema->emails, subject, body); |
