@@ -285,14 +285,14 @@ void QuicError::MemoryInfo(MemoryTracker* tracker) const {
285
285
QuicError QuicError::ForTransport (error_code code, std::string reason) {
286
286
QuicError error (std::move (reason));
287
287
ngtcp2_ccerr_set_transport_error (
288
- &error.error_ , code, error.reason_c_str (), reason.length ());
288
+ &error.error_ , code, error.reason_c_str (), error. reason () .length ());
289
289
return error;
290
290
}
291
291
292
292
QuicError QuicError::ForApplication (error_code code, std::string reason) {
293
293
QuicError error (std::move (reason));
294
294
ngtcp2_ccerr_set_application_error (
295
- &error.error_ , code, error.reason_c_str (), reason.length ());
295
+ &error.error_ , code, error.reason_c_str (), error. reason () .length ());
296
296
return error;
297
297
}
298
298
@@ -307,14 +307,14 @@ QuicError QuicError::ForIdleClose(std::string reason) {
307
307
QuicError QuicError::ForNgtcp2Error (int code, std::string reason) {
308
308
QuicError error (std::move (reason));
309
309
ngtcp2_ccerr_set_liberr (
310
- &error.error_ , code, error.reason_c_str (), reason.length ());
310
+ &error.error_ , code, error.reason_c_str (), error. reason () .length ());
311
311
return error;
312
312
}
313
313
314
314
QuicError QuicError::ForTlsAlert (int code, std::string reason) {
315
315
QuicError error (std::move (reason));
316
316
ngtcp2_ccerr_set_tls_alert (
317
- &error.error_ , code, error.reason_c_str (), reason.length ());
317
+ &error.error_ , code, error.reason_c_str (), error. reason () .length ());
318
318
return error;
319
319
}
320
320
0 commit comments