title: Const pointer argument to a method which delegates to removeAll()
body: <p>Consider a method like this:</p>
  
  <pre><code>void Parent::removeChild(Child *child)
  {
      children.removeAll(child);
  }
  </code></pre>
  
  <p>In this case, since <strong>child</strong> is never modified itself, one could make it a const pointer. But since <strong>children</strong> is of the type QList, the removeAll() takes a const reference to a <em>non-const</em> pointer.</p>
  
  <p>What's the recommended way to handle this? Skip the constness of the method argument or to <strong>const_cast</strong> the const pointer to fit the removeAll() method?</p>