Skip to content

Commit

Permalink
[modernize] use-bool-literals
Browse files Browse the repository at this point in the history
  • Loading branch information
Rechi committed Sep 15, 2019
1 parent f95ee82 commit b9d11a2
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion xbmc/addons/PVRClient.cpp
Expand Up @@ -370,7 +370,7 @@ void CPVRClient::WriteClientChannelInfo(const CPVRChannelPtr &xbmcChannel, PVR_C
bool CPVRClient::GetAddonProperties(void)
{
std::string strBackendName, strConnectionString, strFriendlyName, strBackendVersion, strBackendHostname;
PVR_ADDON_CAPABILITIES addonCapabilities = {0};
PVR_ADDON_CAPABILITIES addonCapabilities = {false};
CPVRTimerTypes timerTypes;

/* get the capabilities */
Expand Down
2 changes: 1 addition & 1 deletion xbmc/cores/AudioEngine/Sinks/AESinkDARWINIOS.mm
Expand Up @@ -535,7 +535,7 @@ static void EnumerateDevices(AEDeviceInfoList &list)
device.m_displayNameExtra = "";
// TODO screen changing on ios needs to call
// devices changed once this is available in active
if (0)
if (false)
{
device.m_deviceType = AE_DEVTYPE_IEC958; //allow passthrough for tvout
device.m_streamTypes.push_back(CAEStreamInfo::STREAM_TYPE_AC3);
Expand Down
2 changes: 1 addition & 1 deletion xbmc/cores/AudioEngine/Sinks/osx/CoreAudioStream.cpp
Expand Up @@ -133,7 +133,7 @@ bool CCoreAudioStream::IsDigitalOutput(AudioStreamID id)
bool CCoreAudioStream::GetStartingChannelInDevice(AudioStreamID id, UInt32 &startingChannel)
{
if (!id)
return 0;
return false;

UInt32 i_param_size = sizeof(UInt32);
UInt32 i_param;
Expand Down
2 changes: 1 addition & 1 deletion xbmc/platform/android/activity/EventLoop.cpp
Expand Up @@ -38,7 +38,7 @@ void CEventLoop::run(IActivityHandler &activityHandler, IInputHandler &inputHand
m_inputHandler = &inputHandler;

CXBMCApp::android_printf("CEventLoop: starting event loop");
while (1)
while (true)
{
// We will block forever waiting for events.
while ((ident = ALooper_pollAll(-1, NULL, &events, (void**)&source)) >= 0)
Expand Down
Expand Up @@ -326,7 +326,7 @@ void CCocoaPowerSyscall::OSPowerCallBack(void *refcon, io_service_t service, nat
static bool stringsAreEqual(CFStringRef a, CFStringRef b)
{
if (a == nil || b == nil)
return 0;
return false;
return (CFStringCompare (a, b, 0) == kCFCompareEqualTo);
}

Expand Down

0 comments on commit b9d11a2

Please sign in to comment.