X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FError.hh;h=05c637705a96d77c91169803e41ae4b1b7f8f6fc;hp=86b8a120bdb1b0635153a8a2190d0e3e1b13ad32;hb=987971a961454d97082c6448fdc0bbeb540281bb;hpb=be9ebc1104574e5e81e19c5caba0c23b54df826d diff --git a/src/Moof/Error.hh b/src/Moof/Error.hh index 86b8a12..05c6377 100644 --- a/src/Moof/Error.hh +++ b/src/Moof/Error.hh @@ -90,6 +90,12 @@ public: return mCode != NONE; } + void reset() throw() + { + mCode = NONE; + mWhat[0] = '\0'; + } + private: unsigned mCode;