[Marble-commits] KDE/kdeedu/marble/src/plugins/render/photo
Bernhard Beschow
bbeschow at cs.tu-berlin.de
Sat Jul 10 12:59:00 CEST 2010
SVN commit 1148354 by beschow:
remove some casts in photo plugin
M +1 -1 FlickrParser.cpp
M +3 -3 FlickrParser.h
M +4 -4 PhotoPluginModel.cpp
--- trunk/KDE/kdeedu/marble/src/plugins/render/photo/FlickrParser.cpp #1148353:1148354
@@ -20,7 +20,7 @@
using namespace Marble;
-FlickrParser::FlickrParser( QList<AbstractDataPluginItem *> *list,
+FlickrParser::FlickrParser( QList<PhotoPluginItem *> *list,
QObject *parent )
: m_list( list ),
m_parent( parent )
--- trunk/KDE/kdeedu/marble/src/plugins/render/photo/FlickrParser.h #1148353:1148354
@@ -20,12 +20,12 @@
namespace Marble
{
-class AbstractDataPluginItem;
+class PhotoPluginItem;
class FlickrParser : public QXmlStreamReader
{
public:
- FlickrParser( QList<AbstractDataPluginItem *> *list,
+ FlickrParser( QList<PhotoPluginItem *> *list,
QObject *parent );
bool read( QByteArray data );
@@ -36,7 +36,7 @@
void readPhotos();
void readPhoto();
- QList<AbstractDataPluginItem *> *m_list;
+ QList<PhotoPluginItem *> *m_list;
QObject *m_parent;
};
--- trunk/KDE/kdeedu/marble/src/plugins/render/photo/PhotoPluginModel.cpp #1148353:1148354
@@ -121,12 +121,12 @@
void PhotoPluginModel::parseFile( const QByteArray& file )
{
- QList<AbstractDataPluginItem*> list;
+ QList<PhotoPluginItem*> list;
FlickrParser parser( &list, this );
parser.read( file );
- QList<AbstractDataPluginItem*>::iterator it;
+ QList<PhotoPluginItem*>::iterator it;
for( it = list.begin(); it != list.end(); ++it ) {
if( itemExists( (*it)->id() ) ) {
@@ -136,8 +136,8 @@
// Currently all Flickr images with geotags are on earth
(*it)->setTarget( "earth" );
- downloadItemData( ((PhotoPluginItem*) (*it))->photoUrl(), "thumbnail", (*it) );
- downloadItemData( ((PhotoPluginItem*) (*it))->infoUrl(), "info", (*it) );
+ downloadItemData( (*it)->photoUrl(), "thumbnail", (*it) );
+ downloadItemData( (*it)->infoUrl(), "info", (*it) );
}
}
More information about the Marble-commits
mailing list