Simple dereferencing pointer issue in C++
<p>Im using <code>qt4</code> and embedding a webkit view in it. The webkit object expects a <code>QUrl</code> object containint the url. My code looks like this:</p>

<pre><code>QUrl *application = new QUrl();

if (argc &lt; 2) {
  application-&gt;setUrl(DEFAULT_PAGE);
}
else {
  application-&gt;setUrl(argv[2]);
}
view-&gt;load(application);
view-&gt;show();
</code></pre>

<p>But <code>view-&gt;load(application);</code> fails here, as <code>view-&gt;load</code> expects a <code>(const QUrl&amp;)</code> and I'm passing a <code>(QUrl*&amp;)</code></p>

<p>I dereferenced the application object like this:</p>

<pre><code>view-&gt;load(&amp;application);
</code></pre>

<p>But that cnoverted <code>application</code> to <code>(QUrl**)</code></p>

<p>How can I convert <code>application</code> to <code>(const QUrl&amp;)</code>?</p>
