Code review comments for r1631

This commit is contained in:
John Maguire 2010-08-04 12:37:46 +00:00
parent 35e87b2a77
commit 67eb9770c4

View File

@ -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_;