title: c++ QVector/Vector issues... const... discards qualifiers
body: <p>I setup a class called tagToken.</p>
  
  <p>It has setter functions, one is void setString(QString)</p>
  
  <p>I have it defined/declared as such</p>
  
  <p>.h file</p>
  
  <pre><code>void setString(QString string);
  
  Private:
  
      QString stringOfTagToken ;
  </code></pre>
  
  <p>.cpp file</p>
  
  <pre><code>void tagToken::setString(QString string)
  {
      stringOfTagToken = string;
  }
  </code></pre>
  
  <p>When I try to run this code:</p>
  
  <pre><code>    if (linePosition == 1)
      {
          QVector&lt;tagToken&gt; temp(0);
  
          //errors
          //temp.at(0).setString(line);
  
          temp.at(0).setString("test");
  
          //tags.at(0).setString(line);
  
          //tags.push_back();
  
          tagTokenCounter++;
      }
  </code></pre>
  
  <p>I get this error:</p>
  
  <p>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");</p>