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