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