summaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorJasmin Jessich <jasmin@anw.at>2017-05-21 17:44:02 (GMT)
committerJasmin Jessich <jasmin@anw.at>2017-05-21 17:44:02 (GMT)
commit4e566656574787472162d7a09bd4460d1ff1e033 (patch)
treeced22657a6b52db5da45dcab123424aed4e737f4 /pages
parent30fef3dda362173844b4edb50294803e02308269 (diff)
downloadvdr-plugin-live-4e566656574787472162d7a09bd4460d1ff1e033.tar.gz
vdr-plugin-live-4e566656574787472162d7a09bd4460d1ff1e033.tar.bz2
Use "std::unique_ptr" instead of "std::auto_ptr"
- Compile plugin with C++11 compiler, to allow usage of "std::unique_ptr". - Added "-Wfatal-errors -Wall" to stop on the first error and switch on all warnings. - Removed autoptr.h and used "std::unique_ptr" instead where macro AUTO_PTR has been used. Checked also, if the pointers are used correctly, because "std::unique_ptr" is not 100% compatible to "std::auto_ptr", when the pointer is "moved". "std::unique_ptr" needs an explicit call to "std::move" in this case (AFAIU). Keep "std::auto_ptr" in the epgsearch interface!
Diffstat (limited to 'pages')
-rw-r--r--pages/edit_timer.ecpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/pages/edit_timer.ecpp b/pages/edit_timer.ecpp
index d080ee5..9a7dfd3 100644
--- a/pages/edit_timer.ecpp
+++ b/pages/edit_timer.ecpp
@@ -8,7 +8,6 @@
#include <livefeatures.h>
#include <epgsearch.h>
#include <users.h>
-#include <autoptr.h>
#include <vdr/timers.h>
@@ -103,7 +102,7 @@ cTimer* timer;
if (message.empty())
edit_timerreferer = request.getHeader("Referer:", "timers.html");
- AUTO_PTR< cTimer > eventTimer;
+ std::unique_ptr< cTimer > eventTimer;
if ( timer == 0 && !epgid.empty()) {
EpgEvents::DecodeDomId(epgid, channelid, eventid);
if ( channelid.Valid() && eventid != 0 ) {