@@ -56,10 +56,6 @@ class ITKCommon_EXPORT ExceptionObject : public std::exception
5656 /* * Explicitly-defaulted default-constructor. Creates an empty exception object. */
5757 ExceptionObject () noexcept = default ;
5858
59- explicit ExceptionObject (const char * file,
60- unsigned int lineNumber = 0 ,
61- const char * desc = " None" ,
62- const char * loc = " Unknown" );
6359 explicit ExceptionObject (std::string file,
6460 unsigned int lineNumber = 0 ,
6561 std::string desc = " None" ,
@@ -226,18 +222,9 @@ class ITKCommon_EXPORT ProcessAborted : public ExceptionObject
226222 }
227223
228224 /* * Constructor. Needed to ensure the exception object can be copied. */
229- ProcessAborted (const char * file, unsigned int lineNumber)
230- : ExceptionObject(file, lineNumber)
231- {
232- this ->SetDescription (" Filter execution was aborted by an external request" );
233- }
234-
235- /* * Constructor. Needed to ensure the exception object can be copied. */
236- ProcessAborted (const std::string & file, unsigned int lineNumber)
237- : ExceptionObject(file, lineNumber)
238- {
239- this ->SetDescription (" Filter execution was aborted by an external request" );
240- }
225+ ProcessAborted (std::string file, unsigned int lineNumber)
226+ : ExceptionObject(std::move(file), lineNumber, " Filter execution was aborted by an external request" )
227+ {}
241228
242229 /* * \see LightObject::GetNameOfClass() */
243230 itkOverrideGetNameOfClassMacro (ProcessAborted);
0 commit comments