1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-23 02:35:57 +01:00

Don't use nullptr in non C++11 code

This commit is contained in:
Matias Fontanini
2018-02-21 09:47:09 -08:00
parent 971fdf7d1c
commit 683550b297

View File

@@ -224,7 +224,7 @@ void BaseSniffer::set_extract_raw_pdus(bool value) {
}
void BaseSniffer::set_pcap_sniffing_method(PcapSniffingMethod method) {
if (method == nullptr) {
if (method == 0) {
throw std::runtime_error("Sniffing method cannot be null");
}
pcap_sniffing_method_ = method;