<table><tr><td style="">davidhurka added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D19539">View Revision</a></tr></table><br /><div><div><p>Isn’t <tt style="background: #ebebeb; font-size: 13px;">auto</tt> a bit confusing as item type? A beginner like me wouldn’t understand that.</p>
<p>Example (pageview.cpp:1194):<br />
<tt style="background: #ebebeb; font-size: 13px;">page</tt> is an item of <tt style="background: #ebebeb; font-size: 13px;">pageSet</tt>, which is <tt style="background: #ebebeb; font-size: 13px;">QVector< Okular::Page * ></tt>. If I don’t know that:<br />
<tt style="background: #ebebeb; font-size: 13px;">PageViewItem * item = new PageViewItem( page );</tt> calls <tt style="background: #ebebeb; font-size: 13px;">PageViewItem::PageViewItem( auto )</tt>. But does <tt style="background: #ebebeb; font-size: 13px;">auto</tt> stand for <tt style="background: #ebebeb; font-size: 13px;">Okular::Page *</tt> or <tt style="background: #ebebeb; font-size: 13px;">int</tt>? And later, should I write <tt style="background: #ebebeb; font-size: 13px;">new PageViewItem( page )</tt> or <tt style="background: #ebebeb; font-size: 13px;">new PageViewItem( pageSet.at( page ) )</tt>?</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R223 Okular</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D19539">https://phabricator.kde.org/D19539</a></div></div><br /><div><strong>To: </strong>sander, Okular<br /><strong>Cc: </strong>davidhurka, okular-devel, tfella, ngraham, darcyshen, aacid<br /></div>