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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user