[Marble-commits] KDE/kdeedu/marble/src/lib
Jens-Michael Hoffmann
jensmh at gmx.de
Fri May 7 17:04:38 CEST 2010
SVN commit 1124013 by jmhoffmann:
Pass non-POD arguments by reference-to-const instead of by value.
M +1 -1 ExtDateTime.cpp
M +1 -1 ExtDateTime.h
--- trunk/KDE/kdeedu/marble/src/lib/ExtDateTime.cpp #1124012:1124013
@@ -102,7 +102,7 @@
}
-void ExtDateTime::setDateTime(QDateTime datetime)
+void ExtDateTime::setDateTime( const QDateTime& datetime )
{
m_datetime = datetime;
m_lastmin = m_datetime.time().minute();
--- trunk/KDE/kdeedu/marble/src/lib/ExtDateTime.h #1124012:1124013
@@ -57,7 +57,7 @@
* @brief Sets the internal date and time a custom one
* @param datetime The custom date and time
**/
- void setDateTime(QDateTime datetime);
+ void setDateTime( const QDateTime& datetime );
/**
* @brief Returns the speed of the timer
More information about the Marble-commits
mailing list