fix tool return bug -- value was never initialized for error constructor!!!!

This commit is contained in:
Kelvin Sherlock 2016-08-02 22:42:14 -04:00
parent 5dd4c13e54
commit c8a119f274

View File

@ -11,10 +11,9 @@ namespace MacOS {
class tool_return_base class tool_return_base
{ {
protected: protected:
macos_error _error; macos_error _error = noErr;
tool_return_base() : _error(static_cast<macos_error>(0)) tool_return_base() = default;
{}
tool_return_base(macos_error error) : _error(error) tool_return_base(macos_error error) : _error(error)
{} {}
@ -41,7 +40,7 @@ namespace MacOS {
class tool_return : public internal::tool_return_base class tool_return : public internal::tool_return_base
{ {
private: private:
T _value; T _value = T();
tool_return() = delete; tool_return() = delete;