made DataEvent::data unique_ptr non-const

This commit is contained in:
Paolo Monteverde 2016-11-30 09:38:32 +01:00
parent 0477cb1117
commit dd1f45ea19

View File

@ -62,11 +62,11 @@ struct WriteEvent: Event<WriteEvent> { };
* It will be emitted by StreamHandle according with its functionalities.
*/
struct DataEvent: Event<DataEvent> {
explicit DataEvent(std::unique_ptr<const char[]> data, ssize_t length) noexcept
explicit DataEvent(std::unique_ptr<char[]> data, ssize_t length) noexcept
: data{std::move(data)}, length(length)
{ }
std::unique_ptr<const char[]> data; /*!< A bunch of data read on the stream. */
std::unique_ptr<char[]> data; /*!< A bunch of data read on the stream. */
std::size_t length; /*!< The amount of data read on the stream. */
};