mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-27 11:40:07 +00:00
remove const_cast eeeeeeeeeek
that wasn't even necessary eeeeeeeeeeeeek2 svn path=/trunk/KDE/kdegraphics/okular/; revision=1071422
This commit is contained in:
parent
d0d70242d0
commit
f12bd0a942
|
@ -143,13 +143,13 @@ bool DviGenerator::doCloseDocument()
|
|||
}
|
||||
|
||||
void DviGenerator::fillViewportFromAnchor( Okular::DocumentViewport &vp,
|
||||
const Anchor &anch, const Okular::Page *page )
|
||||
const Anchor &anch, const Okular::Page *page ) const
|
||||
{
|
||||
fillViewportFromAnchor( vp, anch, page->width(), page->height() );
|
||||
}
|
||||
|
||||
void DviGenerator::fillViewportFromAnchor( Okular::DocumentViewport &vp,
|
||||
const Anchor &anch, int pW, int pH )
|
||||
const Anchor &anch, int pW, int pH ) const
|
||||
{
|
||||
vp.pageNumber = anch.page - 1;
|
||||
|
||||
|
@ -584,7 +584,7 @@ QVariant DviGenerator::metaData( const QString & key, const QVariant & option )
|
|||
const Okular::Page *page = document()->page( anchor.page - 1 );
|
||||
Q_ASSERT_X( page, "DviGenerator::metaData()", "NULL page as result of valid Anchor" );
|
||||
Okular::DocumentViewport viewport;
|
||||
const_cast< DviGenerator * >( this )->fillViewportFromAnchor( viewport, anchor, page );
|
||||
fillViewportFromAnchor( viewport, anchor, page );
|
||||
if ( viewport.isValid() )
|
||||
{
|
||||
return viewport.toString();
|
||||
|
|
|
@ -61,9 +61,9 @@ class DviGenerator : public Okular::Generator
|
|||
void loadPages( QVector< Okular::Page * > & pagesVector );
|
||||
Okular::TextPage *extractTextFromPage( dviPageInfo *pageInfo );
|
||||
void fillViewportFromAnchor( Okular::DocumentViewport &vp, const Anchor &anch,
|
||||
int pW, int pH );
|
||||
int pW, int pH ) const;
|
||||
void fillViewportFromAnchor( Okular::DocumentViewport &vp, const Anchor &anch,
|
||||
const Okular::Page *page );
|
||||
const Okular::Page *page ) const;
|
||||
QLinkedList<Okular::ObjectRect*> generateDviLinks( const dviPageInfo *pageInfo );
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue