diff --git a/src/AvstpWrapper.cpp b/src/AvstpWrapper.cpp index 0d46ccf..b4f7d09 100644 --- a/src/AvstpWrapper.cpp +++ b/src/AvstpWrapper.cpp @@ -82,10 +82,9 @@ Name: use_instance ============================================================================== */ +AvstpWrapper AvstpWrapper::instance; AvstpWrapper & AvstpWrapper::use_instance () { - static AvstpWrapper instance; - return (instance); } diff --git a/src/AvstpWrapper.h b/src/AvstpWrapper.h index 44ebdf2..c199a24 100644 --- a/src/AvstpWrapper.h +++ b/src/AvstpWrapper.h @@ -114,6 +114,7 @@ class AvstpWrapper bool operator == (const AvstpWrapper &other) const; bool operator != (const AvstpWrapper &other) const; + static AvstpWrapper instance; }; // class AvstpWrapper