Skip to content

Commit

Permalink
fix constructor with argument that is not explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
kfb77 committed Aug 9, 2020
1 parent 67daec8 commit f078fff
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion epgsearch/services.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ struct Epgsearch_searchresults_v1_0
{
public:
const cEvent* event;
cServiceSearchResult(const cEvent* Event) : event(Event) {}
explicit cServiceSearchResult(const cEvent* Event) : event(Event) {}
};

cList<cServiceSearchResult>* pResultList; // pointer to the results
Expand Down
2 changes: 1 addition & 1 deletion exception.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace vdrlive {
class HtmlError: public std::runtime_error
{
public:
HtmlError( std::string const& message ): std::runtime_error( message ) {}
explicit HtmlError( std::string const& message ): std::runtime_error( message ) {}
virtual ~HtmlError() throw() {}
};

Expand Down
2 changes: 1 addition & 1 deletion osd_status.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class cLiveOsdItem: public cListObject {
int isSelected() const {return selected;}
void Select(const bool doSelect) { selected= doSelect; };
void Update(const char* Text) { text = Text ? Text : ""; };
cLiveOsdItem(const char* Text):text(),selected(false) { text = Text ? Text : ""; };
explicit cLiveOsdItem(const char* Text):text(),selected(false) { text = Text ? Text : ""; };
~cLiveOsdItem() { }
};

Expand Down
2 changes: 1 addition & 1 deletion tools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ namespace vdrlive {
{
ostream& ostr_;

urlencoder( ostream& ostr ): ostr_( ostr ) {}
explicit urlencoder( ostream& ostr ): ostr_( ostr ) {}

void operator()( char ch )
{
Expand Down
2 changes: 1 addition & 1 deletion tools.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ namespace vdrlive {
typedef void (ReadLock::*safe_bool)() const;

public:
ReadLock(cRwLock& lock, int timeout = 100)
explicit ReadLock(cRwLock& lock, int timeout = 100)
: m_lock(lock)
, m_locked(false)
{
Expand Down

0 comments on commit f078fff

Please sign in to comment.