diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-11-01 23:40:01 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-11-02 23:10:04 +0100 |
| commit | 6fa9748f382302fa88292b4219598bb81edc7bd0 (patch) | |
| tree | 83f0859c934da2293913efb2c5ba029526e5634d /src/lib/emailer.cc | |
| parent | b639b7b20f1ab341194bcd5c76700ca419254d11 (diff) | |
Replace dcp::Data with dcp::ArrayData
Diffstat (limited to 'src/lib/emailer.cc')
| -rw-r--r-- | src/lib/emailer.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/emailer.cc b/src/lib/emailer.cc index dc216e90c..6fe537eb1 100644 --- a/src/lib/emailer.cc +++ b/src/lib/emailer.cc @@ -35,7 +35,7 @@ using std::list; using std::cout; using std::pair; using boost::shared_ptr; -using dcp::Data; +using dcp::ArrayData; Emailer::Emailer (string from, list<string> to, string subject, string body) : _from (from) @@ -155,8 +155,8 @@ Emailer::send (string server, int port, EmailProtocol protocol, string user, str BIO* bio = BIO_new (BIO_s_mem()); bio = BIO_push (b64, bio); - Data data (i.file); - BIO_write (bio, data.data().get(), data.size()); + ArrayData data (i.file); + BIO_write (bio, data.data(), data.size()); (void) BIO_flush (bio); char* out; |
