[Marble-commits] KDE/kdeedu/marble/src/lib
Dennis Nienhüser
earthwings at gentoo.org
Sun Jan 31 01:44:08 CET 2010
SVN commit 1082637 by nienhueser:
The filename is not going to be changed: no reason to use a non-const reference in openGpxFile.
M +1 -1 MarbleMap.cpp
M +1 -1 MarbleMap.h
M +1 -1 MarbleWidget.cpp
M +1 -1 MarbleWidget.h
--- trunk/KDE/kdeedu/marble/src/lib/MarbleMap.cpp #1082636:1082637
@@ -1152,7 +1152,7 @@
#endif
}
-void MarbleMap::openGpxFile(QString &filename)
+void MarbleMap::openGpxFile(const QString &filename)
{
d->m_model->openGpxFile( filename );
}
--- trunk/KDE/kdeedu/marble/src/lib/MarbleMap.h #1082636:1082637
@@ -759,7 +759,7 @@
/**
* @brief Opens a gpx file for viewing on the Marble Map
*/
- void openGpxFile( QString &filename );
+ void openGpxFile( const QString &filename );
/**
* @brief Return a QAbstractItemModel containing GPX files.
--- trunk/KDE/kdeedu/marble/src/lib/MarbleWidget.cpp #1082636:1082637
@@ -1071,7 +1071,7 @@
}
}
-void MarbleWidget::openGpxFile(QString &filename)
+void MarbleWidget::openGpxFile(const QString &filename)
{
d->m_map->openGpxFile(filename);
}
--- trunk/KDE/kdeedu/marble/src/lib/MarbleWidget.h #1082636:1082637
@@ -867,7 +867,7 @@
/**
* @brief Opens a gpx file for viewing on the Marble Widget
*/
- void openGpxFile( QString &filename );
+ void openGpxFile( const QString &filename );
void clearPersistentTileCache();
/**
More information about the Marble-commits
mailing list