forked from OSchip/llvm-project
parent
17de754181
commit
b2605bc96d
|
@ -45,10 +45,10 @@ public:
|
|||
ReadFileLines (FileSpec &input_file);
|
||||
|
||||
uint32_t
|
||||
GetSize ();
|
||||
GetSize () const;
|
||||
|
||||
const char *
|
||||
GetStringAtIndex (size_t idx);
|
||||
GetStringAtIndex (size_t idx) const;
|
||||
|
||||
void
|
||||
Clear ();
|
||||
|
|
|
@ -80,13 +80,13 @@ StringList::ReadFileLines (FileSpec &input_file)
|
|||
}
|
||||
|
||||
uint32_t
|
||||
StringList::GetSize ()
|
||||
StringList::GetSize () const
|
||||
{
|
||||
return m_strings.size();
|
||||
}
|
||||
|
||||
const char *
|
||||
StringList::GetStringAtIndex (size_t idx)
|
||||
StringList::GetStringAtIndex (size_t idx) const
|
||||
{
|
||||
if (idx < m_strings.size())
|
||||
return m_strings[idx].c_str();
|
||||
|
|
Loading…
Reference in New Issue