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

Jens-Michael Hoffmann jensmh at gmx.de
Mon Mar 29 19:47:28 CEST 2010


SVN commit 1108740 by jmhoffmann:

TinyWebBrowser: the d-pointer class is empty at the moment, no need to create/delete.

 M  +3 -5      TinyWebBrowser.cpp  


--- trunk/KDE/kdeedu/marble/src/lib/TinyWebBrowser.cpp #1108739:1108740
@@ -34,9 +34,6 @@
 
 class TinyWebBrowserPrivate
 {
- public:
-    ~TinyWebBrowserPrivate() {
-    }
 };
 
 static QString guessWikipediaDomain()
@@ -48,7 +45,7 @@
 
 TinyWebBrowser::TinyWebBrowser( QWidget* parent )
     : QWebView( parent ),
-      d( new TinyWebBrowserPrivate() )
+      d( 0 )
 {
     connect( this, SIGNAL( statusBarMessage( QString ) ),
              this, SIGNAL( statusMessage( QString ) ) );
@@ -65,7 +62,8 @@
 
 TinyWebBrowser::~TinyWebBrowser()
 {
-    delete d;
+    // not yet needed
+    //delete d;
 }
 
 void TinyWebBrowser::setWikipediaPath( const QString& relativeUrl )


More information about the Marble-commits mailing list