make it assignable
svn path=/trunk/KDE/kdelibs/; revision=1044541
This commit is contained in:
parent
2cd3295e69
commit
db3d20e4d0
@ -249,6 +249,16 @@ RunnerContext::~RunnerContext()
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RunnerContext &RunnerContext::operator=(const RunnerContext &other)
|
||||||
|
{
|
||||||
|
LOCK_FOR_WRITE(this)
|
||||||
|
LOCK_FOR_READ((&other))
|
||||||
|
d = other.d;
|
||||||
|
UNLOCK((&other))
|
||||||
|
UNLOCK(this)
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
void RunnerContext::reset()
|
void RunnerContext::reset()
|
||||||
{
|
{
|
||||||
// We will detach if we are a copy of someone. But we will reset
|
// We will detach if we are a copy of someone. But we will reset
|
||||||
|
@ -67,7 +67,13 @@ class PLASMA_EXPORT RunnerContext : public QObject
|
|||||||
/**
|
/**
|
||||||
* Copy constructor
|
* Copy constructor
|
||||||
*/
|
*/
|
||||||
explicit RunnerContext(RunnerContext &other, QObject *parent = 0);
|
RunnerContext(RunnerContext &other, QObject *parent = 0);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Assignment operator
|
||||||
|
* @since 4.4
|
||||||
|
*/
|
||||||
|
RunnerContext &operator=(const RunnerContext &other);
|
||||||
|
|
||||||
~RunnerContext();
|
~RunnerContext();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user