Skip to content

Commit

Permalink
Minor code cleanup in the EBSDSetGetMacros.h file.
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Jackson <mike.jackson@bluequartz.net>
  • Loading branch information
imikejackson committed Nov 20, 2018
1 parent 6dc2636 commit 6e371af
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Source/EbsdLib/EbsdSetGetMacros.h
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -101,8 +101,7 @@
#define EBSD_STATIC_NEW_SUPERCLASS(superclass, theclass)\ #define EBSD_STATIC_NEW_SUPERCLASS(superclass, theclass)\
static superclass::Pointer New()\ static superclass::Pointer New()\
{\ {\
theclass* ptr = new theclass();\ superclass::Pointer shared_ptr (dynamic_cast<superclass*>(new theclass()) );\
superclass::Pointer shared_ptr (dynamic_cast<superclass*>(ptr) );\
return shared_ptr;\ return shared_ptr;\
} }


Expand Down

0 comments on commit 6e371af

Please sign in to comment.