Skip to content

Commit

Permalink
Use initialisation list for RawDataList (Nuppeldecoder). Cppcheck per…
Browse files Browse the repository at this point in the history
…formance warning
  • Loading branch information
stuartm committed May 24, 2013
1 parent 3e0fd3c commit d0e3184
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mythtv/libs/libmythtv/nuppeldecoder.h
Expand Up @@ -22,8 +22,8 @@ class ProgramInfo;
class RawDataList
{
public:
RawDataList(struct rtframeheader frameh, unsigned char *data)
{ frameheader = frameh; packet = data; }
RawDataList(struct rtframeheader frameh, unsigned char *data) :
frameheader(frameh), packet(data) {}
~RawDataList() { if (packet) delete [] packet; }

struct rtframeheader frameheader;
Expand Down

0 comments on commit d0e3184

Please sign in to comment.