[Marble-commits] KDE/kdeedu/marble/src/lib

Jens-Michael Hoffmann jensmh at gmx.de
Thu Jan 7 02:07:58 CET 2010


SVN commit 1070924 by jmhoffmann:

MarbleGeoDataModel: remove unnecessary include directives.

 M  +2 -5      MarbleGeoDataModel.cpp  
 M  +3 -4      MarbleGeoDataModel.h  


--- trunk/KDE/kdeedu/marble/src/lib/MarbleGeoDataModel.cpp #1070923:1070924
@@ -13,14 +13,11 @@
 #include "MarbleGeoDataModel.h"
 
 // Qt
-#include <QtCore/QModelIndex>
 #include <QtCore/QFile>
-#include <QtGui/QPixmap>
+#include <QtCore/QString>
 
 // Marble
-#include "MarbleDebug.h"
 #include "GeoDataDocument.h"       // In geodata/data/
-#include "GeoDataContainer.h"
 #include "GeoDataParser.h"
 #include "GeoDataStyle.h"
 #include "GeoDataStyleMap.h"
@@ -73,7 +70,7 @@
     return QVariant();
 }
 
-unsigned long MarbleGeoDataModel::addGeoDataFile( QString filename )
+unsigned long MarbleGeoDataModel::addGeoDataFile( const QString &filename )
 {
     /*
     * read a GeoDataDocument for now - hard coded
--- trunk/KDE/kdeedu/marble/src/lib/MarbleGeoDataModel.h #1070923:1070924
@@ -13,14 +13,13 @@
 
 
 #include <QtCore/QAbstractListModel>
-#include <QtCore/QList>
 #include <QtCore/QModelIndex>
-#include <QtCore/QPersistentModelIndex>
 #include <QtCore/QVariant>
-#include <QtCore/QString>
 
 #include "marble_export.h"
 
+class QString;
+
 namespace Marble
 {
 class GeoDataDocument;
@@ -64,7 +63,7 @@
     * the return value is a unique id given for each loaded document 
     * @param filename the filename in the local filesystem
     */
-    unsigned long addGeoDataFile( QString filename );
+    unsigned long addGeoDataFile( const QString &filename );
 
     /**
     * @brief Unload a document from geoDataRoot


More information about the Marble-commits mailing list