[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdetoys/kweather
From:       Arto Hytönen <amthpublic () gmail ! com>
Date:       2007-08-27 10:04:22
Message-ID: 1188209062.146499.12538.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 705150 by amth:

ref-to-const, include guards, explicit ctor and FSF address update fixes


 M  +1 -1      metar_parser.h  
 M  +1 -1      reportmain.cpp  
 M  +4 -1      stationdatabase.cpp  
 M  +1 -1      stationdatabase.h  
 M  +3 -4      weatherbar.h  


--- trunk/KDE/kdetoys/kweather/metar_parser.h #705149:705150
@@ -58,7 +58,7 @@
 class MetarParser
 {
 	public:
-		MetarParser(StationDatabase *stationDB,
+		explicit MetarParser(StationDatabase *stationDB,
 			    KLocale::MeasureSystem units = KLocale::Imperial,
 			    const QDate &date = QDate::currentDate(),
 			    const QTime &time = QTime::currentTime(), 
--- trunk/KDE/kdetoys/kweather/reportmain.cpp #705149:705150
@@ -16,7 +16,7 @@
  *   You should have received a copy of the GNU General Public License     *
  *   along with this program; if not, write to the                         *
  *   Free Software Foundation, Inc.,                                       *
- *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
+ *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.         *
  ***************************************************************************/
 
 #include "reportview.h"
--- trunk/KDE/kdetoys/kweather/stationdatabase.cpp #705149:705150
@@ -11,6 +11,7 @@
 // See COPYING file that comes with this distribution
 //
 //
+
 #include "stationdatabase.h"
 
 #include <qstringlist.h>
@@ -18,6 +19,7 @@
 //Added by qt3to4:
 #include <QTextStream>
 #include <kdebug.h>
+
 #if 0
 class StationInfo
 {
@@ -29,7 +31,8 @@
 		StationInfo () {}
 };
 #endif
-StationDatabase::StationDatabase(const QString path) : mPath(path)
+
+StationDatabase::StationDatabase(const QString &path) : mPath(path)
 {
 }
 
--- trunk/KDE/kdetoys/kweather/stationdatabase.h #705149:705150
@@ -38,7 +38,7 @@
 class StationDatabase
 {
 public:
-    StationDatabase(const QString path = KStandardDirs::locate("data", \
"kweatherservice/stations.dat")); +    StationDatabase(const QString &path = \
KStandardDirs::locate("data", "kweatherservice/stations.dat"));  ~StationDatabase();
 
     QString stationNameFromID(const QString& id);
--- trunk/KDE/kdetoys/kweather/weatherbar.h #705149:705150
@@ -19,8 +19,8 @@
  *  $Id$
  */
 
-#ifndef __KONQSIDEBARWEATHER_H__
-#define __KONQSIDEBARWEATHER_H__
+#ifndef KDETOYS_KWEATHER_H
+#define KDETOYS_KWEATHER_H
 
 #include <konqsidebarplugin.h>
 #include <kparts/part.h>
@@ -63,5 +63,4 @@
     QTimer *timeOut;
 };
 
-#endif
-
+#endif // KDETOYS_KWEATHER_H


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic