コード例 #1
0
ファイル: Preferences.cpp プロジェクト: puckipedia/FilWip
status_t Preferences::SetInt8 (const char *name, int8 i)
{
	if (HasInt8 (name) == true)
		return ReplaceInt8 (name, 0, i);

	return AddInt8 (name, i);
}
コード例 #2
0
ファイル: AttributeMessage.cpp プロジェクト: stippi/Clockwerk
status_t
AttributeMessage::SetAttribute(const char* name, int8 value)
{
	if (ReplaceInt8(name, value) == B_OK)
		return B_OK;
	return AddInt8(name, value);
}
コード例 #3
0
status_t TPreferences::SetInt8(const char *name, int8 i) {
	if (HasInt8(name)) {
		return ReplaceInt8(name, 0, i);
	}
	return AddInt8(name, i);
}