File tuxcards-1.2-compiler_warnings.diff of Package tuxcards

--- src/gui/colorbar/CColorBar.cpp
+++ src/gui/colorbar/CColorBar.cpp
@@ -155,7 +155,8 @@
       QFontMetrics fm(f);
 
       int width=fm.width(msVerticalText);
-      int x = (mbAlignVerticalText==ALIGN_TOP ? x = -1 * width : x = -1 * this->height() );
+      int x = 0;
+      x = (mbAlignVerticalText==ALIGN_TOP ? x = -1 * width : x = -1 * this->height() );
 
       p.rotate(-90);
       p.drawText(x, this->width()/2 + fm.height()/2-3, msVerticalText);
--- src/information/IHistoryListener.h
+++ src/information/IHistoryListener.h
@@ -29,6 +29,7 @@
     * The parameter 'bHasNextElement' states whether the current
     * "history-element" does have a next element.
     */
+   virtual ~IHistoryListener() {}
    virtual void historyStatusChanged( bool bHasPreviousElement, bool bHasNextElement ) = 0;
 };
 #endif
--- src/information/IParent.h
+++ src/information/IParent.h
@@ -28,6 +28,7 @@
 public:
    // Use a 'IParent'-ptr within the constructor; if we have a better
    // idea we might remove these method from the interface.
+   virtual ~IParent() {}
    virtual QString  getDescription( void ) = 0;
    virtual IParent* getParent( void ) = 0;
 
--- src/information/IRemoveElementListener.h
+++ src/information/IRemoveElementListener.h
@@ -25,6 +25,7 @@
     * This method is called just before the information element 'pIE'
     * is removed.
     */
+   virtual ~IRemoveElementListener() {}
    virtual void aboutToRemoveElement( CInformationElement* pIE ) = 0;
 };
 #endif
--- src/gui/colorbar/CColorBar.cpp
+++ src/gui/colorbar/CColorBar.cpp
@@ -156,7 +156,7 @@
 
       int width=fm.width(msVerticalText);
       int x = 0;
-      x = (mbAlignVerticalText==ALIGN_TOP ? x = -1 * width : x = -1 * this->height() );
+      x = (mbAlignVerticalText==ALIGN_TOP ? -1 * width : -1 * this->height() );
 
       p.rotate(-90);
       p.drawText(x, this->width()/2 + fm.height()/2-3, msVerticalText);
openSUSE Build Service is sponsored by