multimedia/kodi: unbreak with clang 4.0
RssReader.cpp:269:19: error: ordered comparison between pointer and zero ('TiXmlElement *' and 'int') while (itemNode > 0) ~~~~~~~~ ^ ~ RssReader.cpp:273:22: error: ordered comparison between pointer and zero ('TiXmlNode *' and 'int') while (childNode > 0) ~~~~~~~~~ ^ ~ PR: 216075 Submitted by: tcberner Approved by: maintainer timeout (2 weeks)
This commit is contained in:
parent
a7fb7f0604
commit
7a8c8c1c10
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=433445
1 changed files with 18 additions and 0 deletions
18
multimedia/kodi/files/patch-xbmc_utils_RssReader.cpp
Normal file
18
multimedia/kodi/files/patch-xbmc_utils_RssReader.cpp
Normal file
|
@ -0,0 +1,18 @@
|
|||
Fix bogus pointer comparisons.
|
||||
|
||||
--- xbmc/utils/RssReader.cpp.orig 2017-01-21 21:11:51 UTC
|
||||
+++ xbmc/utils/RssReader.cpp
|
||||
@@ -266,11 +266,11 @@ void CRssReader::GetNewsItems(TiXmlEleme
|
||||
if (m_tagSet.empty())
|
||||
AddTag("title");
|
||||
|
||||
- while (itemNode > 0)
|
||||
+ while (itemNode)
|
||||
{
|
||||
TiXmlNode* childNode = itemNode->FirstChild();
|
||||
mTagElements.clear();
|
||||
- while (childNode > 0)
|
||||
+ while (childNode)
|
||||
{
|
||||
std::string strName = childNode->ValueStr();
|
||||
|
Loading…
Reference in a new issue