Skip to content

Commit 54c7f99

Browse files
Properly namespace nullptr_t.
nullptr_t is in namespace std, not just at global level. Fixes project-chip#32749
1 parent 86af239 commit 54c7f99

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/app/CASESessionManager.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ void CASESessionManager::FindOrEstablishSession(const ScopedNodeId & peerId, Cal
6262
}
6363

6464
void CASESessionManager::FindOrEstablishSession(const ScopedNodeId & peerId, Callback::Callback<OnDeviceConnected> * onConnection,
65-
nullptr_t
65+
std::nullptr_t
6666
#if CHIP_DEVICE_CONFIG_ENABLE_AUTOMATIC_CASE_RETRIES
6767
,
6868
uint8_t attemptCount, Callback::Callback<OnDeviceConnectionRetry> * onRetry

src/app/CASESessionManager.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ class CASESessionManager : public OperationalSessionReleaseDelegate, public Sess
135135
* @param attemptCount The number of retry attempts if session setup fails (default is 1).
136136
* @param onRetry A callback to be called on a retry attempt (enabled by a config flag).
137137
*/
138-
void FindOrEstablishSession(const ScopedNodeId & peerId, Callback::Callback<OnDeviceConnected> * onConnection, nullptr_t
138+
void FindOrEstablishSession(const ScopedNodeId & peerId, Callback::Callback<OnDeviceConnected> * onConnection, std::nullptr_t
139139
#if CHIP_DEVICE_CONFIG_ENABLE_AUTOMATIC_CASE_RETRIES
140140
,
141141
uint8_t attemptCount = 1, Callback::Callback<OnDeviceConnectionRetry> * onRetry = nullptr

0 commit comments

Comments
 (0)