status_t Preferences::SetInt16 (const char *name, int16 i) { if (HasInt16 (name) == true) return ReplaceInt16 (name, 0, i); return AddInt16 (name, i); }
status_t AttributeMessage::SetAttribute(const char* name, int16 value) { if (ReplaceInt16(name, value) == B_OK) return B_OK; return AddInt16(name, value); }
status_t TPreferences::SetInt16(const char *name, int16 i) { if (HasInt16(name)) { return ReplaceInt16(name, 0, i); } return AddInt16(name, i); }