fix readability-*:
* readability-const-return-type * readability-container-data-pointer * readability-container-size-empty * readability-delete-null-pointer * readability-else-after-return * readability-inconsistent-declaration-parameter-name * readability-redundant-member-init * readability-redundant-smartptr-get * readability-redundant-string-cstr * readability-use-anyofallof * readability-static-definition-in-anonymous-namespace * readability-static-accessed-through-instance * readability-simplify-boolean-expr
This commit is contained in:
@@ -86,7 +86,7 @@ void Exception::ReportException() const
|
||||
msg = _sErrMsg.c_str();
|
||||
}
|
||||
#ifdef FC_DEBUG
|
||||
if (_function.size()) {
|
||||
if (!_function.empty()) {
|
||||
_FC_ERR(_file.c_str(), _line, _function << " -- " << msg);
|
||||
}
|
||||
else
|
||||
@@ -186,9 +186,7 @@ PyObject* AbortException::getPyExceptionType() const
|
||||
// ---------------------------------------------------------
|
||||
|
||||
|
||||
XMLBaseException::XMLBaseException()
|
||||
: Exception()
|
||||
{}
|
||||
XMLBaseException::XMLBaseException() = default;
|
||||
|
||||
XMLBaseException::XMLBaseException(const char* sMessage)
|
||||
: Exception(sMessage)
|
||||
@@ -315,7 +313,7 @@ void FileException::ReportException() const
|
||||
msg = _sErrMsgAndFileName.c_str();
|
||||
}
|
||||
#ifdef FC_DEBUG
|
||||
if (_function.size()) {
|
||||
if (!_function.empty()) {
|
||||
_FC_ERR(_file.c_str(), _line, _function << " -- " << msg);
|
||||
}
|
||||
else
|
||||
@@ -354,9 +352,7 @@ PyObject* FileException::getPyExceptionType() const
|
||||
// ---------------------------------------------------------
|
||||
|
||||
|
||||
FileSystemError::FileSystemError()
|
||||
: Exception()
|
||||
{}
|
||||
FileSystemError::FileSystemError() = default;
|
||||
|
||||
FileSystemError::FileSystemError(const char* sMessage)
|
||||
: Exception(sMessage)
|
||||
@@ -374,9 +370,7 @@ PyObject* FileSystemError::getPyExceptionType() const
|
||||
// ---------------------------------------------------------
|
||||
|
||||
|
||||
BadFormatError::BadFormatError()
|
||||
: Exception()
|
||||
{}
|
||||
BadFormatError::BadFormatError() = default;
|
||||
|
||||
BadFormatError::BadFormatError(const char* sMessage)
|
||||
: Exception(sMessage)
|
||||
@@ -469,9 +463,7 @@ PyObject* AbnormalProgramTermination::getPyExceptionType() const
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
UnknownProgramOption::UnknownProgramOption()
|
||||
: Exception()
|
||||
{}
|
||||
UnknownProgramOption::UnknownProgramOption() = default;
|
||||
|
||||
UnknownProgramOption::UnknownProgramOption(const char* sMessage)
|
||||
: Exception(sMessage)
|
||||
@@ -488,9 +480,7 @@ PyObject* UnknownProgramOption::getPyExceptionType() const
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
ProgramInformation::ProgramInformation()
|
||||
: Exception()
|
||||
{}
|
||||
ProgramInformation::ProgramInformation() = default;
|
||||
|
||||
ProgramInformation::ProgramInformation(const char* sMessage)
|
||||
: Exception(sMessage)
|
||||
@@ -502,9 +492,7 @@ ProgramInformation::ProgramInformation(const std::string& sMessage)
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
TypeError::TypeError()
|
||||
: Exception()
|
||||
{}
|
||||
TypeError::TypeError() = default;
|
||||
|
||||
TypeError::TypeError(const char* sMessage)
|
||||
: Exception(sMessage)
|
||||
@@ -521,9 +509,7 @@ PyObject* TypeError::getPyExceptionType() const
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
ValueError::ValueError()
|
||||
: Exception()
|
||||
{}
|
||||
ValueError::ValueError() = default;
|
||||
|
||||
ValueError::ValueError(const char* sMessage)
|
||||
: Exception(sMessage)
|
||||
@@ -540,9 +526,7 @@ PyObject* ValueError::getPyExceptionType() const
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
IndexError::IndexError()
|
||||
: Exception()
|
||||
{}
|
||||
IndexError::IndexError() = default;
|
||||
|
||||
IndexError::IndexError(const char* sMessage)
|
||||
: Exception(sMessage)
|
||||
@@ -559,9 +543,7 @@ PyObject* IndexError::getPyExceptionType() const
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
NameError::NameError()
|
||||
: Exception()
|
||||
{}
|
||||
NameError::NameError() = default;
|
||||
|
||||
NameError::NameError(const char* sMessage)
|
||||
: Exception(sMessage)
|
||||
@@ -578,9 +560,7 @@ PyObject* NameError::getPyExceptionType() const
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
ImportError::ImportError()
|
||||
: Exception()
|
||||
{}
|
||||
ImportError::ImportError() = default;
|
||||
|
||||
ImportError::ImportError(const char* sMessage)
|
||||
: Exception(sMessage)
|
||||
@@ -597,9 +577,7 @@ PyObject* ImportError::getPyExceptionType() const
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
AttributeError::AttributeError()
|
||||
: Exception()
|
||||
{}
|
||||
AttributeError::AttributeError() = default;
|
||||
|
||||
AttributeError::AttributeError(const char* sMessage)
|
||||
: Exception(sMessage)
|
||||
@@ -616,9 +594,7 @@ PyObject* AttributeError::getPyExceptionType() const
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
RuntimeError::RuntimeError()
|
||||
: Exception()
|
||||
{}
|
||||
RuntimeError::RuntimeError() = default;
|
||||
|
||||
RuntimeError::RuntimeError(const char* sMessage)
|
||||
: Exception(sMessage)
|
||||
@@ -654,9 +630,7 @@ PyObject* BadGraphError::getPyExceptionType() const
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
NotImplementedError::NotImplementedError()
|
||||
: Exception()
|
||||
{}
|
||||
NotImplementedError::NotImplementedError() = default;
|
||||
|
||||
NotImplementedError::NotImplementedError(const char* sMessage)
|
||||
: Exception(sMessage)
|
||||
@@ -673,9 +647,7 @@ PyObject* NotImplementedError::getPyExceptionType() const
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
ZeroDivisionError::ZeroDivisionError()
|
||||
: Exception()
|
||||
{}
|
||||
ZeroDivisionError::ZeroDivisionError() = default;
|
||||
|
||||
ZeroDivisionError::ZeroDivisionError(const char* sMessage)
|
||||
: Exception(sMessage)
|
||||
@@ -692,9 +664,7 @@ PyObject* ZeroDivisionError::getPyExceptionType() const
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
ReferenceError::ReferenceError()
|
||||
: Exception()
|
||||
{}
|
||||
ReferenceError::ReferenceError() = default;
|
||||
|
||||
ReferenceError::ReferenceError(const char* sMessage)
|
||||
: Exception(sMessage)
|
||||
@@ -711,9 +681,7 @@ PyObject* ReferenceError::getPyExceptionType() const
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
ExpressionError::ExpressionError()
|
||||
: Exception()
|
||||
{}
|
||||
ExpressionError::ExpressionError() = default;
|
||||
|
||||
ExpressionError::ExpressionError(const char* sMessage)
|
||||
: Exception(sMessage)
|
||||
@@ -730,9 +698,7 @@ PyObject* ExpressionError::getPyExceptionType() const
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
ParserError::ParserError()
|
||||
: Exception()
|
||||
{}
|
||||
ParserError::ParserError() = default;
|
||||
|
||||
ParserError::ParserError(const char* sMessage)
|
||||
: Exception(sMessage)
|
||||
@@ -749,9 +715,7 @@ PyObject* ParserError::getPyExceptionType() const
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
UnicodeError::UnicodeError()
|
||||
: Exception()
|
||||
{}
|
||||
UnicodeError::UnicodeError() = default;
|
||||
|
||||
UnicodeError::UnicodeError(const char* sMessage)
|
||||
: Exception(sMessage)
|
||||
@@ -768,9 +732,7 @@ PyObject* UnicodeError::getPyExceptionType() const
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
OverflowError::OverflowError()
|
||||
: Exception()
|
||||
{}
|
||||
OverflowError::OverflowError() = default;
|
||||
|
||||
OverflowError::OverflowError(const char* sMessage)
|
||||
: Exception(sMessage)
|
||||
@@ -787,9 +749,7 @@ PyObject* OverflowError::getPyExceptionType() const
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
UnderflowError::UnderflowError()
|
||||
: Exception()
|
||||
{}
|
||||
UnderflowError::UnderflowError() = default;
|
||||
|
||||
UnderflowError::UnderflowError(const char* sMessage)
|
||||
: Exception(sMessage)
|
||||
@@ -806,9 +766,7 @@ PyObject* UnderflowError::getPyExceptionType() const
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
UnitsMismatchError::UnitsMismatchError()
|
||||
: Exception()
|
||||
{}
|
||||
UnitsMismatchError::UnitsMismatchError() = default;
|
||||
|
||||
UnitsMismatchError::UnitsMismatchError(const char* sMessage)
|
||||
: Exception(sMessage)
|
||||
@@ -825,9 +783,7 @@ PyObject* UnitsMismatchError::getPyExceptionType() const
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
CADKernelError::CADKernelError()
|
||||
: Exception()
|
||||
{}
|
||||
CADKernelError::CADKernelError() = default;
|
||||
|
||||
CADKernelError::CADKernelError(const char* sMessage)
|
||||
: Exception(sMessage)
|
||||
@@ -844,9 +800,7 @@ PyObject* CADKernelError::getPyExceptionType() const
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
RestoreError::RestoreError()
|
||||
: Exception()
|
||||
{}
|
||||
RestoreError::RestoreError() = default;
|
||||
|
||||
RestoreError::RestoreError(const char* sMessage)
|
||||
: Exception(sMessage)
|
||||
|
||||
Reference in New Issue
Block a user