Skip to content
This repository was archived by the owner on Dec 20, 2023. It is now read-only.

Commit 03d4fe5

Browse files
committed
const declaration has no effect
When building with -Wignored-qualifiers, the constness of a returned pointer (as opposed to the thing being pointed to) is ignored. This removes an unnecessary const declaration.
1 parent 6fb884d commit 03d4fe5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lib/profiles/time/WeaveTime.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1245,7 +1245,7 @@ class NL_DLL_EXPORT SingleSourceTimeSyncClient
12451245
WEAVE_ERROR SendSyncRequest(void);
12461246

12471247
void SetClientState(const ClientState state);
1248-
const char * const GetClientStateName(void) const;
1248+
const char * GetClientStateName(void) const;
12491249

12501250
static void HandleTimeChangeNotification(ExchangeContext *aEC, const IPPacketInfo *aPktInfo,
12511251
const WeaveMessageInfo *aMsgInfo, uint32_t aProfileId, uint8_t aMsgType, PacketBuffer *aPayload);

src/lib/profiles/time/WeaveTimeClient.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2669,7 +2669,7 @@ void SingleSourceTimeSyncClient::HandleTimeChangeNotification(ExchangeContext *a
26692669
}
26702670
}
26712671

2672-
const char * const SingleSourceTimeSyncClient::GetClientStateName(void) const
2672+
const char * SingleSourceTimeSyncClient::GetClientStateName(void) const
26732673
{
26742674
const char * stateName = NULL;
26752675

0 commit comments

Comments
 (0)