made FCommandLine::operator[] return a const char * and fixed two places where this triggered a compile error.

This commit is contained in:
Christoph Oelckers 2024-10-19 13:22:30 +02:00
commit e81d563cf4
4 changed files with 5 additions and 6 deletions

View file

@ -193,7 +193,7 @@ int FCommandLine::argc ()
return _argc;
}
char *FCommandLine::operator[] (int i)
const char *FCommandLine::operator[] (int i)
{
if (_argv == NULL)
{

View file

@ -44,7 +44,7 @@ public:
FCommandLine (const char *commandline, bool no_escapes = false);
~FCommandLine ();
int argc ();
char *operator[] (int i);
const char *operator[] (int i);
const char *args () { return cmd; }
void Shift();