Code review comments for r1631

This commit is contained in:
John Maguire 2010-08-04 12:37:46 +00:00
parent 35e87b2a77
commit 67eb9770c4
1 changed files with 2 additions and 2 deletions

View File

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