[Marble-commits] KDE/kdeedu/marble/src/plugins/render/osmannotate
Jens-Michael Hoffmann
jensmh at gmx.de
Sat Aug 15 09:51:26 CEST 2009
SVN commit 1011584 by jmhoffmann:
Remove unnecessary copy constructor invocations.
M +3 -3 TmpGraphicsItem.cpp
--- trunk/KDE/kdeedu/marble/src/plugins/render/osmannotate/TmpGraphicsItem.cpp #1011583:1011584
@@ -36,12 +36,12 @@
QList<QRegion> TmpGraphicsItem::regions() const
{
- return QList<QRegion>( m_regions );
+ return m_regions;
}
QList<TmpGraphicsItem*> TmpGraphicsItem::children() const
{
- return QList<TmpGraphicsItem*>(m_children);
+ return m_children;
}
void TmpGraphicsItem::addChild(TmpGraphicsItem* c)
@@ -84,7 +84,7 @@
void TmpGraphicsItem::setRegions( const QList<QRegion>& regions )
{
m_regions.clear();
- m_regions = QList<QRegion>( regions );
+ m_regions = regions;
}
}
More information about the Marble-commits
mailing list