Skip to content

Commit 431870a

Browse files
committed
add const to unregister
1 parent cfbb470 commit 431870a

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

DisplayInfo/DeviceSettings/PlatformImplementation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ class DisplayInfoImplementation :
119119

120120
return (Core::ERROR_NONE);
121121
}
122-
uint32_t Unregister(INotification* notification) override
122+
uint32_t Unregister(const INotification* notification) override
123123
{
124124
ASSERT(notification != nullptr);
125125

DisplayInfo/Linux/PlatformImplementation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ namespace Plugin {
511511
return (Core::ERROR_NONE);
512512
}
513513

514-
uint32_t Unregister(IConnectionProperties::INotification* notification) override
514+
uint32_t Unregister(const IConnectionProperties::INotification* notification) override
515515
{
516516
std::lock_guard<std::mutex> lock(_observersLock);
517517

DisplayInfo/RPI/PlatformImplementation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class DisplayInfoImplementation : public Exchange::IHDRProperties,
109109

110110
return (Core::ERROR_NONE);
111111
}
112-
uint32_t Unregister(INotification* notification) override
112+
uint32_t Unregister(const INotification* notification) override
113113
{
114114
ASSERT(notification != nullptr);
115115

LocationSync/LocationSync.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ POP_WARNING()
221221
return Core::ERROR_NONE;
222222
}
223223

224-
uint32_t LocationSync::Unregister(Exchange::ITimeZone::INotification* sink) {
224+
uint32_t LocationSync::Unregister(const Exchange::ITimeZone::INotification* sink) {
225225
_adminLock.Lock();
226226
TimeZoneObservers::iterator index = std::find(_timezoneoberservers.begin(), _timezoneoberservers.end(), sink);
227227
ASSERT (index != _timezoneoberservers.end());

LocationSync/LocationSync.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ POP_WARNING()
275275
// ITimeZone methods
276276
// -------------------------------------------------------------------------------------------------------
277277
uint32_t Register(ITimeZone::INotification* sink) override;
278-
uint32_t Unregister(ITimeZone::INotification* sink) override;
278+
uint32_t Unregister(const ITimeZone::INotification* sink) override;
279279
uint32_t TimeZone(string& timeZone ) const override;
280280
uint32_t TimeZone(const string& timeZone) override;
281281

PlayerInfo/DeviceSettings/PlatformImplementation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ class PlayerInfoImplementation : public Exchange::IPlayerProperties, public Exch
244244
return (Core::ERROR_NONE);
245245
}
246246

247-
uint32_t Unregister(Exchange::Dolby::IOutput::INotification* notification) override
247+
uint32_t Unregister(const Exchange::Dolby::IOutput::INotification* notification) override
248248
{
249249
ASSERT(notification != nullptr);
250250

PlayerInfo/Dolby/DolbyOutput.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ namespace Thunder
4848

4949
return (Core::ERROR_NONE);
5050
}
51-
uint32_t Unregister(Exchange::Dolby::IOutput::INotification* notification) override
51+
uint32_t Unregister(const Exchange::Dolby::IOutput::INotification* notification) override
5252
{
5353
ASSERT(notification != nullptr);
5454

WebKitBrowser/WebKitImplementation.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1049,7 +1049,7 @@ namespace Plugin {
10491049
_adminLock.Unlock();
10501050
}
10511051

1052-
void Unregister(Exchange::IBrowserCookieJar::INotification* sink) override
1052+
void Unregister(const Exchange::IBrowserCookieJar::INotification* sink) override
10531053
{
10541054
ASSERT(sink != nullptr);
10551055
_adminLock.Lock();
@@ -1414,7 +1414,7 @@ namespace Plugin {
14141414

14151415
}
14161416

1417-
void Unregister(Exchange::IWebBrowser::INotification* sink) override
1417+
void Unregister(const Exchange::IWebBrowser::INotification* sink) override
14181418
{
14191419
ASSERT(sink != nullptr);
14201420

@@ -1455,7 +1455,7 @@ namespace Plugin {
14551455
TRACE(Trace::Information, (_T("Registered a sink on the browser %p"), sink));
14561456
}
14571457

1458-
void Unregister(Exchange::IBrowser::INotification* sink) override
1458+
void Unregister(const Exchange::IBrowser::INotification* sink) override
14591459
{
14601460
ASSERT(sink != nullptr);
14611461

@@ -1497,7 +1497,7 @@ namespace Plugin {
14971497
_adminLock.Unlock();
14981498
}
14991499

1500-
void Unregister(Exchange::IApplication::INotification* sink) override
1500+
void Unregister(const Exchange::IApplication::INotification* sink) override
15011501
{
15021502
ASSERT(sink != nullptr);
15031503

0 commit comments

Comments
 (0)