add GetChars() accessors to many FString uses where const char* is wanted.
By no means complete, it's just a start to get rid of that automatic type conversion operator.
This commit is contained in:
parent
a3eb1ec1fd
commit
1717ff47b2
28 changed files with 92 additions and 97 deletions
|
|
@ -85,7 +85,7 @@ FConfigFile::FConfigFile (const FConfigFile &other)
|
|||
Sections = CurrentSection = NULL;
|
||||
LastSectionPtr = &Sections;
|
||||
CurrentEntry = NULL;
|
||||
ChangePathName (other.PathName);
|
||||
ChangePathName (other.PathName.GetChars());
|
||||
*this = other;
|
||||
OkayToWrite = other.OkayToWrite;
|
||||
FileExisted = other.FileExisted;
|
||||
|
|
@ -134,7 +134,7 @@ FConfigFile &FConfigFile::operator = (const FConfigFile &other)
|
|||
while (fromsection != NULL)
|
||||
{
|
||||
fromentry = fromsection->RootEntry;
|
||||
tosection = NewConfigSection (fromsection->SectionName);
|
||||
tosection = NewConfigSection (fromsection->SectionName.GetChars());
|
||||
while (fromentry != NULL)
|
||||
{
|
||||
NewConfigEntry (tosection, fromentry->Key, fromentry->Value);
|
||||
|
|
@ -602,7 +602,7 @@ void FConfigFile::LoadConfigFile ()
|
|||
bool succ;
|
||||
|
||||
FileExisted = false;
|
||||
if (!file.OpenFile (PathName))
|
||||
if (!file.OpenFile (PathName.GetChars()))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
@ -739,7 +739,7 @@ FConfigFile::FConfigEntry *FConfigFile::ReadMultiLineValue(FileReader *file, FCo
|
|||
// Append this line to the value.
|
||||
value << readbuf;
|
||||
}
|
||||
return NewConfigEntry(section, key, value);
|
||||
return NewConfigEntry(section, key, value.GetChars());
|
||||
}
|
||||
|
||||
//====================================================================
|
||||
|
|
@ -787,7 +787,7 @@ bool FConfigFile::WriteConfigFile () const
|
|||
return true;
|
||||
}
|
||||
|
||||
FileWriter *file = FileWriter::Open (PathName);
|
||||
FileWriter *file = FileWriter::Open (PathName.GetChars());
|
||||
FConfigSection *section;
|
||||
FConfigEntry *entry;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue