8dac833ab2
PR: 12624 Submitted by: Jason Brazile <jason.brazile@netcetera.ch>
23 lines
735 B
Plaintext
23 lines
735 B
Plaintext
*** old/settergetter.h Wed Jan 17 03:57:37 1996
|
|
--- settergetter.h Mon Jul 12 15:28:20 1999
|
|
***************
|
|
*** 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));
|
|
}
|
|
***************
|
|
*** 89,94 ****
|
|
--- 90,96 ----
|
|
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:
|