small api fix

svn path=/trunk/playground/graphics/okular/; revision=625715
This commit is contained in:
Pino Toscano 2007-01-20 22:04:10 +00:00
parent 2479bb7cb5
commit 9cda7888d9
2 changed files with 4 additions and 4 deletions

View file

@ -392,7 +392,7 @@ void Page::setTextPage( TextPage * textPage )
d->m_text = textPage;
}
void Page::setObjectRects( const QLinkedList< ObjectRect * > rects )
void Page::setObjectRects( const QLinkedList< ObjectRect * > & rects )
{
QSet<ObjectRect::ObjectType> which;
which << ObjectRect::Link << ObjectRect::Image;
@ -434,7 +434,7 @@ void Page::setTextSelections( RegularAreaRect *r, const QColor & color )
}
}
void Page::setSourceReferences( const QLinkedList< SourceRefObjectRect * > refRects )
void Page::setSourceReferences( const QLinkedList< SourceRefObjectRect * > & refRects )
{
deleteSourceReferences();
foreach( SourceRefObjectRect * rect, refRects )

View file

@ -215,7 +215,7 @@ class OKULAR_EXPORT Page : public QObject
/**
* Sets the list of object @p rects of the page.
*/
void setObjectRects( const QLinkedList< ObjectRect * > rects );
void setObjectRects( const QLinkedList< ObjectRect * > & rects );
/**
* Sets the @p color and @p area of the highlight for the observer with
@ -231,7 +231,7 @@ class OKULAR_EXPORT Page : public QObject
/**
* Sets the list of source reference objects @p rects.
*/
void setSourceReferences( const QLinkedList< SourceRefObjectRect * > rects );
void setSourceReferences( const QLinkedList< SourceRefObjectRect * > & rects );
/**
* Sets the duration of the page to @p seconds when displayed in presentation mode.