I setup a class called tagToken.

It has setter functions, one is void setString(QString)

I have it defined/declared as such

.h file

```
void setString(QString string);

Private:

    QString stringOfTagToken ;

```

.cpp file

```
void tagToken::setString(QString string)
{
    stringOfTagToken = string;
}

```

When I try to run this code:

```
    if (linePosition == 1)
    {
        QVector<tagToken> temp(0);

        //errors
        //temp.at(0).setString(line);

        temp.at(0).setString("test");

        //tags.at(0).setString(line);

        //tags.push_back();

        tagTokenCounter++;
    }

```

I get this error:

C:\Dev\DiffMatchPatch\diffmatchpatch.cpp:316: error: passing 'const tagToken' as 'this' argument of 'void tagToken::setString(QString)' discards qualifiers [-fpermissive]
 temp.at(0).setString("test");