summaryrefslogtreecommitdiff
path: root/client/control.cc
diff options
context:
space:
mode:
Diffstat (limited to 'client/control.cc')
-rw-r--r--client/control.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/client/control.cc b/client/control.cc
index b6495d2..d634039 100644
--- a/client/control.cc
+++ b/client/control.cc
@@ -46,11 +46,13 @@ void Control::setCpr(QString cpr)
mutex.unlock();
}
-void Control::getCpr(QString *cpr)
+QString Control::getCpr()
{
+ QString cpr;
mutex.lock();
- *cpr = Control::cpr;
+ cpr = Control::cpr;
mutex.unlock();
+ return cpr;
}
void Control::freeze()