From 93ab83ece731163f34edd3bf967fee4a70926b5e Mon Sep 17 00:00:00 2001 From: Arthur Liberman Date: Fri, 6 Sep 2019 16:39:39 +0300 Subject: [PATCH] Fix warnings "catching polymorphic type by value" during build --- pvr.iptvsimple/addon.xml.in | 5 ++++- pvr.iptvsimple/changelog.txt | 3 +++ src/iptvsimple/Epg.cpp | 4 ++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/pvr.iptvsimple/addon.xml.in b/pvr.iptvsimple/addon.xml.in index d9113c730..4bcc6889f 100644 --- a/pvr.iptvsimple/addon.xml.in +++ b/pvr.iptvsimple/addon.xml.in @@ -1,7 +1,7 @@ @ADDON_DEPENDS@ @@ -159,6 +159,9 @@ 這是測試中的軟體!原創作者無法針對以下情況負責:包括播放失敗,不正確的電子節目表,多餘的時數,或任何不可預期的不良影響。 @PLATFORM@ +v4.5.1 +- Fix compiler warnings + v4.5.0 - Fixed: Support full timeshift range of -12 to +14 hours - Fixed: Some providers incorrectly use tvg-ID instead of tvg-id diff --git a/pvr.iptvsimple/changelog.txt b/pvr.iptvsimple/changelog.txt index f5d9d8e4c..5a521ebd7 100644 --- a/pvr.iptvsimple/changelog.txt +++ b/pvr.iptvsimple/changelog.txt @@ -1,3 +1,6 @@ +v4.5.1 +- Fix compiler warnings + v4.5.0 - Fixed: Support full timeshift range of -12 to +14 hours - Fixed: Some providers incorrectly use tvg-ID instead of tvg-id diff --git a/src/iptvsimple/Epg.cpp b/src/iptvsimple/Epg.cpp index 19afe2929..962488f0c 100644 --- a/src/iptvsimple/Epg.cpp +++ b/src/iptvsimple/Epg.cpp @@ -84,7 +84,7 @@ bool Epg::LoadEPG(time_t start, time_t end) { xmlDoc.parse<0>(buffer); } - catch (parse_error p) + catch (parse_error& p) { Logger::Log(LEVEL_ERROR, "%s - Unable parse EPG XML: %s", __FUNCTION__, p.what()); return false; @@ -430,7 +430,7 @@ bool Epg::LoadGenres() { xmlDoc.parse<0>(buffer); } - catch (parse_error p) + catch (parse_error& p) { return false; }