@@ -413,6 +413,8 @@ namespace WPEFramework
413
413
ASSERT (service != nullptr );
414
414
PowerState pwrStateCur = WPEFramework::Exchange::IPowerManager::POWER_STATE_UNKNOWN;
415
415
PowerState pwrStatePrev = WPEFramework::Exchange::IPowerManager::POWER_STATE_UNKNOWN;
416
+ uint32_t res = Core::ERROR_GENERAL;
417
+ string msg;
416
418
if (Utils::IARM::init ()) {
417
419
// Initialize cecEnableStatus to false in ctor
418
420
cecEnableStatus = false ;
@@ -475,7 +477,6 @@ namespace WPEFramework
475
477
msg = " IARM bus is not available" ;
476
478
LOGERR (" IARM bus is not available. Failed to activate HdmiCecSource Plugin" );
477
479
}
478
- _powerManagerPlugin = service->QueryInterface <PowerManagerInterface>();
479
480
ASSERT (_powerManagerPlugin);
480
481
registerEventHandlers ();
481
482
return Core::ERROR_NONE;
@@ -643,12 +644,12 @@ namespace WPEFramework
643
644
return Core::ERROR_NONE;
644
645
}
645
646
646
- uint32_t HdmiCecSourceImplementation::SendKeyPressEvent (const int &logicalAddress, int &keyCode, bool &success)
647
+ uint32_t HdmiCecSourceImplementation::SendKeyPressEvent (const int &logicalAddress,const int &keyCode, bool &success)
647
648
{
648
649
SendKeyInfo keyInfo;
649
650
try {
650
- keyInfo.logicalAddr = std::stoi ( logicalAddress) ;
651
- keyInfo.keyCode = std::stoi ( keyCode) ;
651
+ keyInfo.logicalAddr = logicalAddress;
652
+ keyInfo.keyCode = keyCode;
652
653
} catch (const std::invalid_argument& e) {
653
654
std::cerr << " Invalid input: " << e.what () << std::endl;
654
655
success = false ;
@@ -1229,7 +1230,7 @@ namespace WPEFramework
1229
1230
unsigned int vendorIdInt = 0 ;
1230
1231
try
1231
1232
{
1232
- vendorIdInt = std:: stoi (vendorid,NULL ,16 );
1233
+ vendorIdInt = stoi (vendorid,NULL ,16 );
1233
1234
}
1234
1235
catch (...)
1235
1236
{
0 commit comments