@@ -407,7 +407,7 @@ namespace WPEFramework
407
407
DeinitializeIARM ();
408
408
}
409
409
410
- HdmiCecSourceImplementation::Configure (PluginHost::IShell* service)
410
+ uint32_t HdmiCecSourceImplementation::Configure (PluginHost::IShell* service)
411
411
{
412
412
LOGINFO (" Configure" );
413
413
ASSERT (service != nullptr );
@@ -493,7 +493,7 @@ namespace WPEFramework
493
493
494
494
}
495
495
496
- void HdmiCecSourceImplementation::Register (Exchange:: IHdmiCecSource::INotification* notification)
496
+ void HdmiCecSourceImplementation::Register (IHdmiCecSource::INotification* notification)
497
497
{
498
498
499
499
LOGINFO (" Register" );
@@ -647,8 +647,8 @@ namespace WPEFramework
647
647
{
648
648
SendKeyInfo keyInfo;
649
649
try {
650
- keyInfo.logicalAddr = stoi (logicalAddress);
651
- keyInfo.keyCode = stoi (keyCode);
650
+ keyInfo.logicalAddr = std:: stoi (logicalAddress);
651
+ keyInfo.keyCode = std:: stoi (keyCode);
652
652
} catch (const std::invalid_argument& e) {
653
653
std::cerr << " Invalid input: " << e.what () << std::endl;
654
654
success = false ;
@@ -667,7 +667,9 @@ namespace WPEFramework
667
667
{
668
668
LOGINFO (" sendKeyReleaseEvent logicalAddress 0x%x \n " ,logicalAddress);
669
669
if (!(_instance->smConnection ))
670
+ {
670
671
return ;
672
+ }
671
673
_instance->smConnection ->sendTo (LogicalAddress (logicalAddress), MessageEncoder ().encode (UserControlReleased ()), 100 );
672
674
673
675
}
@@ -1227,7 +1229,7 @@ namespace WPEFramework
1227
1229
unsigned int vendorIdInt = 0 ;
1228
1230
try
1229
1231
{
1230
- vendorIdInt = stoi (vendorid,NULL ,16 );
1232
+ vendorIdInt = std:: stoi (vendorid,NULL ,16 );
1231
1233
}
1232
1234
catch (...)
1233
1235
{
@@ -1283,7 +1285,7 @@ namespace WPEFramework
1283
1285
}
1284
1286
}
1285
1287
1286
- uint32_t HdmiCecSourceImplementation::getDeviceList (IHdmiCecSource::IHdmiCecSourceDeviceListIterator *&deviceList, bool &success /* @out */ )
1288
+ uint32_t HdmiCecSourceImplementation::getDeviceList (Exchange:: IHdmiCecSource::IHdmiCecSourceDeviceListIterator *&deviceList, bool &success /* @out */ )
1287
1289
{ // sample servicemanager response:
1288
1290
LOGINFOMETHOD ();
1289
1291
std::vector<Exchange::HdmiCecSourceDevices> localDevices;
@@ -1596,7 +1598,7 @@ namespace WPEFramework
1596
1598
{
1597
1599
std::list<Exchange::IHdmiCecSource::INotification*>::const_iterator index (_hdmiCecSourceNotifications.begin ());
1598
1600
while (index != _hdmiCecSourceNotifications.end ()) {
1599
- (*index)->OnStandbyMsgReceived (logicalAddress);
1601
+ (*index)->StandbyMessageReceived (logicalAddress);
1600
1602
index++;
1601
1603
}
1602
1604
}
0 commit comments