Skip to content

Commit 978902f

Browse files
committed
Fix codechecker violations
1 parent 64a93f3 commit 978902f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

DataFormats/MemoryResources/include/MemoryResources/MemoryResources.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ class SpectatorMemoryResource : public boost::container::pmr::memory_resource
163163
{
164164
if (p == mPointer) {
165165
mBuffer.reset();
166-
mPointer = 0;
166+
mPointer = nullptr;
167167
} else if (mPointer == nullptr) {
168168
// there is an error in the logic flow, this should never be called more than once
169169
throw std::logic_error("underlying controlled resource has been released already");

run/O2SimDeviceRunner.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#include <sys/wait.h>
2424
#include <pthread.h> // to set cpu affinity
2525
#include <cmath>
26-
#include <signal.h>
26+
#include <csignal>
2727
#include <unistd.h>
2828

2929
#include "rapidjson/document.h"

0 commit comments

Comments
 (0)