#include "i18n.h"
using std::string;
-using std::stringstream;
using std::min;
using std::list;
using std::cout;
boost::posix_time::time_duration offset = local_now - utc_now;
sprintf (date_buffer + strlen(date_buffer), "%s%02d%02d", (offset.hours() >= 0 ? "+" : "-"), abs (offset.hours()), offset.minutes());
- stringstream email;
+ SafeStringStream email;
email << "Date: " << date_buffer << "\r\n"
<< "To: " << address_list (_to) << "\r\n"
#include <iostream>
using std::string;
-using std::stringstream;
using std::cout;
using std::map;
using std::list;
action = r["action"];
}
- stringstream json;
+ SafeStringStream json;
if (action == "status") {
list<shared_ptr<Job> > jobs = JobManager::instance()->get ();
}
}
- stringstream reply;
+ SafeStringStream reply;
reply << "HTTP/1.1 200 OK\r\n"
<< "Content-Length: " << json.str().length() << "\r\n"
<< "Content-Type: application/json\r\n"
using std::vector;
using std::min;
using std::max;
-using std::stringstream;
using std::fixed;
using std::setprecision;
using std::list;
VideoContent::processing_description () const
{
/* stringstream is OK here as this string is just for presentation to the user */
- stringstream d;
+ SafeStringStream d;
if (video_size().width && video_size().height) {
d << String::compose (
using std::list;
using std::string;
using std::cerr;
-using std::stringstream;
using boost::shared_ptr;
using boost::optional;
test (dcp::Size content_size, dcp::Size display_size, dcp::Size film_size, Crop crop, Ratio const * ratio, bool scale, dcp::Size correct)
{
shared_ptr<Film> film;
- stringstream s;
+ SafeStringStream s;
s << "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
"<Content>"
"<Type>FFmpeg</Type>"