Пример #1
0
status_t Preferences::SetInt16 (const char *name, int16 i)
{
	if (HasInt16 (name) == true)
		return ReplaceInt16 (name, 0, i);

	return AddInt16 (name, i);
}
Пример #2
0
status_t
AttributeMessage::SetAttribute(const char* name, int16 value)
{
	if (ReplaceInt16(name, value) == B_OK)
		return B_OK;
	return AddInt16(name, value);
}
Пример #3
0
status_t TPreferences::SetInt16(const char *name, int16 i) {
	if (HasInt16(name)) {
		return ReplaceInt16(name, 0, i);
	}
	return AddInt16(name, i);
}