IniFile: Removed the problematic printf-like Set function.
It wasn't used in any client code anyway.
This commit is contained in:
parent
d5dfacae87
commit
e272637ff5
@ -461,20 +461,6 @@ bool cIniFile::SetValueF(const AString & a_KeyName, const AString & a_ValueName,
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
bool cIniFile::SetValueV(const AString & a_KeyName, const AString & a_ValueName, const char * a_Format, ...)
|
|
||||||
{
|
|
||||||
va_list args;
|
|
||||||
va_start(args, a_Format);
|
|
||||||
AString Data;
|
|
||||||
AppendVPrintf(Data, a_Format, args);
|
|
||||||
va_end(args);
|
|
||||||
return SetValue(a_KeyName, a_ValueName, Data);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
AString cIniFile::GetValue(const int keyID, const int valueID, const AString & defValue) const
|
AString cIniFile::GetValue(const int keyID, const int valueID, const AString & defValue) const
|
||||||
{
|
{
|
||||||
if ((keyID < (int)keys.size()) && (valueID < (int)keys[keyID].names.size()))
|
if ((keyID < (int)keys.size()) && (valueID < (int)keys[keyID].names.size()))
|
||||||
|
@ -154,12 +154,6 @@ public:
|
|||||||
}
|
}
|
||||||
bool SetValueF(const AString & a_KeyName, const AString & a_ValueName, const double a_Value, const bool a_CreateIfNotExists = true);
|
bool SetValueF(const AString & a_KeyName, const AString & a_ValueName, const double a_Value, const bool a_CreateIfNotExists = true);
|
||||||
|
|
||||||
// tolua_end
|
|
||||||
|
|
||||||
bool SetValueV( const AString & a_KeyName, const AString & a_ValueName, const char * a_Format, ...) FORMATSTRING(3,4);
|
|
||||||
|
|
||||||
// tolua_begin
|
|
||||||
|
|
||||||
// Deletes specified value.
|
// Deletes specified value.
|
||||||
// Returns true if value existed and deleted, false otherwise.
|
// Returns true if value existed and deleted, false otherwise.
|
||||||
bool DeleteValueByID(const int keyID, const int valueID);
|
bool DeleteValueByID(const int keyID, const int valueID);
|
||||||
|
Loading…
Reference in New Issue
Block a user