Base: modernize C++: use equals default
This commit is contained in:
@@ -45,16 +45,7 @@ Exception::Exception()
|
||||
_sErrMsg = "FreeCAD Exception";
|
||||
}
|
||||
|
||||
Exception::Exception(const Exception &inst)
|
||||
: BaseClass(inst)
|
||||
, _sErrMsg(inst._sErrMsg)
|
||||
, _file(inst._file)
|
||||
, _line(inst._line)
|
||||
, _function(inst._function)
|
||||
, _isTranslatable(inst._isTranslatable)
|
||||
, _isReported(inst._isReported)
|
||||
{
|
||||
}
|
||||
Exception::Exception(const Exception &inst) = default;
|
||||
|
||||
Exception::Exception(const char * sMessage)
|
||||
: _sErrMsg(sMessage)
|
||||
@@ -282,13 +273,6 @@ FileException::FileException()
|
||||
_sErrMsgAndFileName = _sErrMsg;
|
||||
}
|
||||
|
||||
FileException::FileException(const FileException &inst)
|
||||
: Exception(inst._sErrMsg.c_str())
|
||||
, file(inst.file)
|
||||
, _sErrMsgAndFileName(inst._sErrMsgAndFileName.c_str())
|
||||
{
|
||||
}
|
||||
|
||||
void FileException::setFileName(const char * sFileName)
|
||||
{
|
||||
file.setFile(sFileName);
|
||||
|
||||
Reference in New Issue
Block a user