LGTM: [skip ci] fix: Inconsistent definition of copy constructor and assignment ('Rule of Two')
Remove user-defined copy constructor of Exception classes without assignment operator
This commit is contained in:
@@ -305,11 +305,6 @@ AttachEngineException::AttachEngineException(const std::string& sMessage)
|
||||
{
|
||||
}
|
||||
|
||||
AttachEngineException::AttachEngineException(const AttachEngineException &inst)
|
||||
: Base::Exception(inst)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
namespace App {
|
||||
/// @cond DOXERR
|
||||
|
||||
@@ -52,8 +52,6 @@ public:
|
||||
AttachEngineException();
|
||||
AttachEngineException(const char * sMessage);
|
||||
AttachEngineException(const std::string& sMessage);
|
||||
/// Construction
|
||||
AttachEngineException(const AttachEngineException &inst);
|
||||
/// Destruction
|
||||
virtual ~AttachEngineException() throw() {}
|
||||
};
|
||||
|
||||
@@ -267,11 +267,6 @@ NullShapeException::NullShapeException(const std::string& sMessage)
|
||||
{
|
||||
}
|
||||
|
||||
NullShapeException::NullShapeException(const NullShapeException &inst)
|
||||
: ValueError(inst)
|
||||
{
|
||||
}
|
||||
|
||||
// ------------------------------------------------
|
||||
|
||||
BooleanException::BooleanException()
|
||||
@@ -289,11 +284,6 @@ BooleanException::BooleanException(const std::string& sMessage)
|
||||
{
|
||||
}
|
||||
|
||||
BooleanException::BooleanException(const BooleanException &inst)
|
||||
: CADKernelError(inst)
|
||||
{
|
||||
}
|
||||
|
||||
// ------------------------------------------------
|
||||
|
||||
TYPESYSTEM_SOURCE(Part::ShapeSegment , Data::Segment)
|
||||
|
||||
@@ -52,8 +52,6 @@ public:
|
||||
NullShapeException();
|
||||
NullShapeException(const char * sMessage);
|
||||
NullShapeException(const std::string& sMessage);
|
||||
/// Construction
|
||||
NullShapeException(const NullShapeException &inst);
|
||||
/// Destruction
|
||||
virtual ~NullShapeException() throw() {}
|
||||
};
|
||||
@@ -67,8 +65,6 @@ public:
|
||||
BooleanException();
|
||||
BooleanException(const char * sMessage);
|
||||
BooleanException(const std::string& sMessage);
|
||||
/// Construction
|
||||
BooleanException(const BooleanException &inst);
|
||||
/// Destruction
|
||||
virtual ~BooleanException() throw() {}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user