Commit bbebfc34 authored by Sergio Martins's avatar Sergio Martins
Browse files

Add Q_DISABLE_COPY on classes freeing resources in dtor but no copy-ctor

parent c2386e4d
......@@ -113,6 +113,7 @@ public:
}
}
private:
Q_DISABLE_COPY(MyReadLocker)
QReadWriteLock *const rwl;
bool locked;
};
......@@ -584,6 +585,8 @@ public:
{
b = old;
}
private:
Q_DISABLE_COPY(ConversionGuard)
};
}
......
......@@ -60,6 +60,7 @@ public:
void scan();
private:
Q_DISABLE_COPY(PluginLoader)
PluginLoader();
static PluginLoader *mSelf;
......
......@@ -190,6 +190,7 @@ public:
}
private:
Q_DISABLE_COPY(PainterStateSaver)
QPainter *mPainter;
};
......
......@@ -554,6 +554,7 @@ public:
_p->insideSelectionSlot = false;
}
private:
Q_DISABLE_COPY(InsideSelectionSlotBlocker)
Private *_p;
};
......
......@@ -57,6 +57,7 @@ public:
}
private:
Q_DISABLE_COPY(XmlPtr)
T p;
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment