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:
wmayer
2020-07-27 13:47:41 +02:00
parent 13fc0554a0
commit 9367e73e92
8 changed files with 8 additions and 232 deletions

View File

@@ -305,11 +305,6 @@ AttachEngineException::AttachEngineException(const std::string& sMessage)
{
}
AttachEngineException::AttachEngineException(const AttachEngineException &inst)
: Base::Exception(inst)
{
}
namespace App {
/// @cond DOXERR

View File

@@ -52,8 +52,6 @@ public:
AttachEngineException();
AttachEngineException(const char * sMessage);
AttachEngineException(const std::string& sMessage);
/// Construction
AttachEngineException(const AttachEngineException &inst);
/// Destruction
virtual ~AttachEngineException() throw() {}
};

View File

@@ -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)

View File

@@ -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() {}
};