Fixed V591: Non-void function should return a value

If there is needed to prevent the copying of the object, then there is no need to provide the definition of the copy constructor and the assignment operator, because the member functions and friendly functions can still call them. If the code is compiled by a compiler with support for the C++11 standard, you can delete them using the keyword 'delete'
This commit is contained in:
Phillip Khandeliants 2017-04-27 10:33:31 +03:00
parent 1b95038fc5
commit 32c5ada995

View file

@ -161,8 +161,8 @@ protected:
SignalSig *mSignal;
private:
SignalSlot( const SignalSlot&) {}
SignalSlot& operator=( const SignalSlot&) {}
SignalSlot( const SignalSlot&);
SignalSlot& operator=( const SignalSlot&);
};
template<typename Signature> class SignalBaseT : public SignalBase