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

Jens-Michael Hoffmann jensmh at gmx.de
Fri May 7 13:36:13 CEST 2010


SVN commit 1123928 by jmhoffmann:

Coding style: Opening braces of namespaces, classes and functions should be on their own line.

 M  +2 -1      MarbleDebug.cpp  
 M  +8 -4      MarbleDebug.h  


--- trunk/KDE/kdeedu/marble/src/lib/MarbleDebug.cpp #1123927:1123928
@@ -9,6 +9,7 @@
 //
 
 #include "MarbleDebug.h"
-namespace Marble {
+namespace Marble
+{
     bool MarbleDebug::enable = false;
 } // namespace Marble
--- trunk/KDE/kdeedu/marble/src/lib/MarbleDebug.h #1123927:1123928
@@ -15,11 +15,13 @@
 
 #include "marble_export.h"
 
-namespace Marble {
+namespace Marble
+{
 /**
   * a simple null device
   */
-class NullDevice : public QIODevice {
+class NullDevice : public QIODevice
+{
     public:
         qint64 readData ( char * /*data*/, qint64 /*maxSize*/ ) { return -1; };
         qint64 writeData ( const char * /*data*/, qint64 maxSize ) { return maxSize; };
@@ -29,7 +31,8 @@
   * a class which takes all the settings and exposes them
   */
 
-class MARBLE_EXPORT MarbleDebug {
+class MARBLE_EXPORT MarbleDebug
+{
     public:
         static bool enable;
         static QIODevice* nullDevice() { static QIODevice *device = new NullDevice; return device; };
@@ -39,7 +42,8 @@
   * an inline function which should replace qDebug()
   */
 
-inline QDebug mDebug() { 
+inline QDebug mDebug()
+{
     if(MarbleDebug::enable) 
         return QDebug(QtDebugMsg); 
     else 


More information about the Marble-commits mailing list