Removed useless Tile::operator=

remotes/origin/KDE/4.10
Fabio D'Urso 14 years ago
parent 3af7937384
commit 85d5f043a2
  1. 2
      core/tile.h
  2. 13
      core/tilesmanager.cpp
  3. 4
      ui/pagepainter.cpp
  4. 6
      ui/pageview.cpp

@ -42,8 +42,6 @@ class OKULAR_EXPORT Tile
*/
bool isValid() const;
Tile & operator=( const Tile &t );
private:
class Private;
Private * d;

@ -613,19 +613,6 @@ Tile::Tile( const Tile &t )
d->isValid = t.d->isValid;
}
Tile & Tile::operator=( const Tile &t )
{
if ( this == &t )
return *this;
d = new Tile::Private;
d->rect = t.d->rect;
d->pixmap = t.d->pixmap;
d->isValid = t.d->isValid;
return *this;
}
Tile::~Tile()
{
delete d;

@ -249,7 +249,7 @@ void PagePainter::paintCroppedPageOnPainter( QPainter * destPainter, const Okula
QList<Okular::Tile>::const_iterator tIt = tiles.constBegin(), tEnd = tiles.constEnd();
while ( tIt != tEnd )
{
Okular::Tile tile = *tIt;
const Okular::Tile &tile = *tIt;
QRect tileRect = tile.rect().geometry( scaledWidth, scaledHeight );
QRect limitsInTile = limits & tileRect;
if ( tile.pixmap() && !limitsInTile.isEmpty() )
@ -305,7 +305,7 @@ void PagePainter::paintCroppedPageOnPainter( QPainter * destPainter, const Okula
QList<Okular::Tile>::const_iterator tIt = tiles.constBegin(), tEnd = tiles.constEnd();
while ( tIt != tEnd )
{
Okular::Tile tile = *tIt;
const Okular::Tile &tile = *tIt;
QRect tileRect = tile.rect().geometry( scaledWidth, scaledHeight );
QRect limitsInTile = limits & tileRect;
if ( tile.pixmap() && !limitsInTile.isEmpty() )

@ -4133,7 +4133,7 @@ void PageView::slotRequestVisiblePixmaps( int newValue )
QList<Okular::Tile>::const_iterator tIt = tiles.constBegin(), tEnd = tiles.constEnd();
while ( tIt != tEnd )
{
Okular::Tile tile = *tIt;
const Okular::Tile &tile = *tIt;
if ( !tile.isValid() )
{
if ( tilesRect.isNull() )
@ -4211,7 +4211,7 @@ void PageView::slotRequestVisiblePixmaps( int newValue )
QList<Okular::Tile>::const_iterator tIt = tiles.constBegin(), tEnd = tiles.constEnd();
while ( tIt != tEnd )
{
Okular::Tile tile = *tIt;
const Okular::Tile &tile = *tIt;
if ( !tile.isValid() )
{
if ( tilesRect.isNull() )
@ -4259,7 +4259,7 @@ void PageView::slotRequestVisiblePixmaps( int newValue )
QList<Okular::Tile>::const_iterator tIt = tiles.constBegin(), tEnd = tiles.constEnd();
while ( tIt != tEnd )
{
Okular::Tile tile = *tIt;
const Okular::Tile &tile = *tIt;
if ( !tile.isValid() )
{
if ( tilesRect.isNull() )

Loading…
Cancel
Save