Code review comments for r1631
This commit is contained in:
parent
35e87b2a77
commit
67eb9770c4
@ -8,7 +8,7 @@
|
|||||||
template <typename T, typename D>
|
template <typename T, typename D>
|
||||||
class BoundFutureWatcher : public QFutureWatcher<T>, boost::noncopyable {
|
class BoundFutureWatcher : public QFutureWatcher<T>, boost::noncopyable {
|
||||||
public:
|
public:
|
||||||
BoundFutureWatcher(D data, QObject* parent = 0)
|
BoundFutureWatcher(const D& data, QObject* parent = 0)
|
||||||
: QFutureWatcher<T>(parent),
|
: QFutureWatcher<T>(parent),
|
||||||
data_(data) {
|
data_(data) {
|
||||||
}
|
}
|
||||||
@ -16,7 +16,7 @@ class BoundFutureWatcher : public QFutureWatcher<T>, boost::noncopyable {
|
|||||||
~BoundFutureWatcher() {
|
~BoundFutureWatcher() {
|
||||||
}
|
}
|
||||||
|
|
||||||
D data() const { return data_; }
|
const D& data() const { return data_; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
D data_;
|
D data_;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user