Cosmetic syntax tweak using throw in Octave directors

This commit is contained in:
William S Fulton 2018-05-03 19:19:45 +01:00
commit 4e0b2f1402

View file

@ -51,7 +51,7 @@ namespace Swig {
public: public:
static void raise(const char *msg) { static void raise(const char *msg) {
// ... todo // ... todo
throw(DirectorException()); throw DirectorException();
} }
static void raise(const octave_value &ov, const char *msg) { static void raise(const octave_value &ov, const char *msg) {
@ -64,7 +64,7 @@ namespace Swig {
public: public:
static void raise(const char *msg) { static void raise(const char *msg) {
// ... todo // ... todo
throw(DirectorTypeMismatchException()); throw DirectorTypeMismatchException();
} }
static void raise(const octave_value &ov, const char *msg) { static void raise(const octave_value &ov, const char *msg) {
@ -77,7 +77,7 @@ namespace Swig {
public: public:
static void raise(const char *msg) { static void raise(const char *msg) {
// ... todo // ... todo
throw(DirectorPureVirtualException()); throw DirectorPureVirtualException();
} }
static void raise(const octave_value &ov, const char *msg) { static void raise(const octave_value &ov, const char *msg) {