Permalink
Browse files

Use initialisation list for RawDataList (Nuppeldecoder). Cppcheck per…

…formance warning
  • Loading branch information...
stuartm committed May 24, 2013
1 parent 3e0fd3c commit d0e3184d8239a3a655052d51fdc2e792ea260bf5
Showing with 2 additions and 2 deletions.
  1. +2 −2 mythtv/libs/libmythtv/nuppeldecoder.h
@@ -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;

0 comments on commit d0e3184

Please sign in to comment.