Mercurial > octave
comparison liboctave/util/url-transfer.cc @ 28223:45763d59cb4f stable
use nullptr instead of NULL or 0 in a few more places
* QWinTerminalImpl.cpp, oct-procbuf.cc, audioread.cc, jit-typeinfo.cc,
lo-sysdep.cc, url-transfer.cc, shared-fcns.h: Replace NULL and 0 with
nullptr where appropriate.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 15 Apr 2020 15:55:32 -0400 |
parents | a4268efb7334 |
children | 159b6a1eb408 |
comparison
equal
deleted
inserted
replaced
28220:6cccc3c82175 | 28223:45763d59cb4f |
---|---|
730 // corresponding to the fieldname and it's value. | 730 // corresponding to the fieldname and it's value. |
731 // To attach a file, you should use 'file' as the fieldname with the | 731 // To attach a file, you should use 'file' as the fieldname with the |
732 // path of the file as its value. | 732 // path of the file as its value. |
733 void form_data_post (const Array<std::string>& param) | 733 void form_data_post (const Array<std::string>& param) |
734 { | 734 { |
735 struct curl_httppost *post = NULL, *last = NULL; | 735 struct curl_httppost *post = nullptr, *last = nullptr; |
736 | 736 |
737 SETOPT (CURLOPT_URL, m_host_or_url.c_str ()); | 737 SETOPT (CURLOPT_URL, m_host_or_url.c_str ()); |
738 | 738 |
739 unwind_protect frame; | 739 unwind_protect frame; |
740 | 740 |