diff options
author | David Nugent <davidn@FreeBSD.org> | 1997-04-17 07:05:40 +0000 |
---|---|---|
committer | David Nugent <davidn@FreeBSD.org> | 1997-04-17 07:05:40 +0000 |
commit | b63958f2e9f5d0d696eaef941d1a75beb0c9a6a9 (patch) | |
tree | 2a0d6fccc6c33cebc18a68f5dd9a238f44228da7 /audio/mxv/files/patch-af | |
parent | Add Net/OpenBSD compatible MAN= macros to makefiles. (diff) |
MiXViews audio file editor/player/recorder.
Diffstat (limited to '')
-rw-r--r-- | audio/mxv/files/patch-af | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/audio/mxv/files/patch-af b/audio/mxv/files/patch-af new file mode 100644 index 000000000000..0edbba9c4815 --- /dev/null +++ b/audio/mxv/files/patch-af @@ -0,0 +1,40 @@ +*** settergetter.h.orig Thu Apr 17 15:07:13 1997 +--- settergetter.h Thu Apr 17 15:17:30 1997 +*************** +*** 64,69 **** +--- 64,70 ---- + Status (Object::*setfunc)(Type), + Type (Object::*getfunc)() const) + : obj(objptr), setter(setfunc), getter(getfunc) {} ++ ~MethodSetterGetter() {} + redefined boolean set(Type value) { + return boolean((obj->*setter)(value)); + } +*************** +*** 82,94 **** + return new MethodSetterGetter<Object, Status, Type>(objptr, setfunc, getfunc); + } + +- //******** +- + template <class Status, class Type> + class FunctionSetterGetter : public SetterGetter<Type> { + public: + FunctionSetterGetter(Status (*setfunc)(Type), Type (*getfunc)()) + : setter(setfunc), getter(getfunc) {} + redefined boolean set(Type value) { (*setter)(value); return true; } + redefined Type get() const { return (*getter)(); } + private: +--- 83,94 ---- + return new MethodSetterGetter<Object, Status, Type>(objptr, setfunc, getfunc); + } + + template <class Status, class Type> + class FunctionSetterGetter : public SetterGetter<Type> { + public: + FunctionSetterGetter(Status (*setfunc)(Type), Type (*getfunc)()) + : setter(setfunc), getter(getfunc) {} ++ ~FunctionSetterGetter() {} + redefined boolean set(Type value) { (*setter)(value); return true; } + redefined Type get() const { return (*getter)(); } + private: |