Skip to content

Commit

Permalink
gcc11 fix warning: 'template<class> class std::auto_ptr' is deprecated
Browse files Browse the repository at this point in the history
author: martinkg
  • Loading branch information
kfb77 committed Jan 11, 2021
1 parent 79b7394 commit f6cfefa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions epgsearch/services.h
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ class cServiceHandler
struct Epgsearch_services_v1_0
{
// in/out
std::auto_ptr<cServiceHandler> handler;
std::unique_ptr<cServiceHandler> handler;
};

// Data structures for service "Epgsearch-services-v1.1"
Expand All @@ -176,7 +176,7 @@ class cServiceHandler_v1_1 : public cServiceHandler
struct Epgsearch_services_v1_1
{
// in/out
std::auto_ptr<cServiceHandler_v1_1> handler;
std::unique_ptr<cServiceHandler_v1_1> handler;
};

// Data structures for service "Epgsearch-services-v1.2"
Expand All @@ -192,7 +192,7 @@ class cServiceHandler_v1_2 : public cServiceHandler_v1_1
struct Epgsearch_services_v1_2
{
// in/out
std::auto_ptr<cServiceHandler_v1_2> handler;
std::unique_ptr<cServiceHandler_v1_2> handler;
};

#endif

0 comments on commit f6cfefa

Please sign in to comment.