Skip to content

Commit

Permalink
screaming case constexpr
Browse files Browse the repository at this point in the history
  • Loading branch information
capitalistspz committed Nov 22, 2024
1 parent a6bab48 commit a3dc371
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/PairingDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ void PairingDialog::WorkerThread()
#elif BOOST_OS_LINUX
void PairingDialog::WorkerThread()
{
constexpr static uint8_t liacLap[] = {0x00, 0x8b, 0x9e};
constexpr static uint8_t LIAC_LAP[] = {0x00, 0x8b, 0x9e};

constexpr static auto isWiimoteName = [](std::string_view name) {
return name == "Nintendo RVL-CNT-01" || name == "Nintendo RVL-CNT-01-TR";
Expand All @@ -245,7 +245,7 @@ void PairingDialog::WorkerThread()
// Search for device
inquiry_info* infos = nullptr;
m_cancelButton->Disable();
const auto respCount = hci_inquiry(hostId, 5, 4, liacLap, &infos, IREQ_CACHE_FLUSH);
const auto respCount = hci_inquiry(hostId, 5, 4, LIAC_LAP, &infos, IREQ_CACHE_FLUSH);
m_cancelButton->Enable();
if (respCount <= 0)
{
Expand Down

0 comments on commit a3dc371

Please sign in to comment.