[Marble-commits] KDE/kdeedu/marble/src/lib
Thibaut Gridel
tgridel at free.fr
Mon Jan 10 21:34:57 CET 2011
SVN commit 1213563 by tgridel:
FileManager: simplify code
M +2 -8 FileManager.cpp
M +0 -1 FileManager.h
--- trunk/KDE/kdeedu/marble/src/lib/FileManager.cpp #1213562:1213563
@@ -125,13 +125,6 @@
mDebug() << "could not identify " << key;
}
-void FileManager::addFile ( KmlFileViewItem * item )
-{
- mDebug() << "FileManager::addFile";
- d->m_fileItemList.append( item );
- emit fileAdded( d->m_fileItemList.indexOf( item ) );
-}
-
void FileManager::saveFile( int index )
{
if ( index < d->m_fileItemList.size() ) {
@@ -169,7 +162,8 @@
void FileManager::addGeoDataDocument( GeoDataDocument* document )
{
KmlFileViewItem* item = new KmlFileViewItem( document );
- addFile( item );
+ d->m_fileItemList.append( item );
+ emit fileAdded( d->m_fileItemList.indexOf( item ) );
// now get the document that will be preserved throughout the life time
GeoDataDocument* doc = item->document();
--- trunk/KDE/kdeedu/marble/src/lib/FileManager.h #1213562:1213563
@@ -77,7 +77,6 @@
*/
void addData( const QString &name, const QString &data );
- void addFile( KmlFileViewItem *item );
void saveFile( int index );
void closeFile( int index );
More information about the Marble-commits
mailing list