Pārlūkot izejas kodu

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'
Phillip Khandeliants 8 gadi atpakaļ
vecāks
revīzija
cf776cf8b0
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      Engine/source/core/util/tSignal.h

+ 2 - 2
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<typename Signature> class SignalBaseT : public SignalBase