From cf776cf8b001ef291bac019458bce0ed4078c2b6 Mon Sep 17 00:00:00 2001 From: Phillip Khandeliants Date: Thu, 27 Apr 2017 10:33:31 +0300 Subject: [PATCH] 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' --- Engine/source/core/util/tSignal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Engine/source/core/util/tSignal.h b/Engine/source/core/util/tSignal.h index 206533458..4960ba8dd 100644 --- a/Engine/source/core/util/tSignal.h +++ b/Engine/source/core/util/tSignal.h @@ -161,8 +161,8 @@ protected: SignalSig *mSignal; private: - SignalSlot( const SignalSlot&) {} - SignalSlot& operator=( const SignalSlot&) {} + SignalSlot( const SignalSlot&); + SignalSlot& operator=( const SignalSlot&); }; template class SignalBaseT : public SignalBase