Skip to content

Commit

Permalink
Ensure all Q_DISABLE_COPY macro usage is a private section
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartm committed Dec 15, 2012
1 parent f1540fe commit 7dfc8a2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/mhegic.h
Expand Up @@ -15,7 +15,6 @@ class NetStream;
class MHInteractionChannel : public QObject
{
Q_OBJECT
Q_DISABLE_COPY(MHInteractionChannel)

public:
MHInteractionChannel(QObject* parent = 0);
Expand All @@ -41,6 +40,7 @@ private slots:
void slotFinished(QObject*);

private:
Q_DISABLE_COPY(MHInteractionChannel)
mutable QMutex m_mutex;
typedef QHash< QString, NetStream* > map_t;
map_t m_pending; // Pending requests
Expand Down
6 changes: 4 additions & 2 deletions mythtv/libs/libmythtv/netstream.h
Expand Up @@ -30,7 +30,6 @@ class NetStreamAbort;
class NetStream : public QObject
{
Q_OBJECT
Q_DISABLE_COPY(NetStream)

public:
enum EMode { kNeverCache, kPreferCache, kAlwaysCache };
Expand Down Expand Up @@ -86,6 +85,8 @@ private slots:
void slotReadyRead();

private:
Q_DISABLE_COPY(NetStream)

bool Request(const QUrl &);

const int m_id; // Unique request ID
Expand All @@ -109,7 +110,6 @@ private slots:
class NAMThread : public QThread
{
Q_OBJECT
Q_DISABLE_COPY(NAMThread)

// Use manager() to create
NAMThread();
Expand Down Expand Up @@ -137,6 +137,8 @@ private slots:
void quit();

private:
Q_DISABLE_COPY(NAMThread)

volatile bool m_bQuit;
QSemaphore m_running;
mutable QMutex m_mutex; // Protects r/w access to the following data
Expand Down
1 change: 1 addition & 0 deletions mythtv/libs/libmythui/mythuiimage.h
Expand Up @@ -177,6 +177,7 @@ class MUI_PUBLIC MythUIImage : public MythUIType
friend class MythUITextEdit;
friend class ImageLoadThread;

private:
Q_DISABLE_COPY(MythUIImage)
};

Expand Down

0 comments on commit 7dfc8a2

Please sign in to comment.