title: Multiple makers and type conversion
body: <pre><code>Vector&lt;Medicine*&gt;* Controller::sortByStockAsc(){
      Vector&lt;Medicine*&gt;* all =repo-&gt;getAll();
      qsort(all, all-&gt;getSize(),sizeof(Medicine*), (comparefunction) compareNA);
      return all;
  }
  </code></pre>
  
  <p>So,I have the function above which should sort an array of objects.I get the error </p>
  
  <pre><code>cannot convert 'Vector&lt;Medicine*&gt;' to 'Vector&lt;Medicine*&gt;*' in initialization
  </code></pre>
  
  <p>But if I write it as <code>Vector&lt;Medicine*&gt; all =repo-&gt;getAll();</code>  I get a bunch of new errors for the 3rd line(which aren't there if I have the previous error on the 2nd line): </p>
  
  <pre><code>Multiple markers at this line
      - Method 'getSize' could not be resolved
      - Invalid arguments ' Candidates are: void qsort(void *, unsigned int, unsigned int, int (*)(const void *, const 
       void *)) '
      - base operand of '-&gt;' has non-pointer type 'Vector&lt;Medicine*&gt;'
  </code></pre>
  
  <p>What's wrong with this and how can I fix it?</p>