[Qgis-developer] patch qgscomposer.cpp for gcc 4.5.0?

Vincent Schut schut at sarvision.nl
Mon May 10 07:06:36 EDT 2010


Hi,

In order to get qgis svn to compile on my machine, I needed the 
following patch:


Index: src/app/composer/qgscomposer.cpp
===================================================================
--- src/app/composer/qgscomposer.cpp    (revision 13455)
+++ src/app/composer/qgscomposer.cpp    (working copy)
@@ -1031,7 +1031,7 @@
    QSettings settings;
    restoreGeometry( settings.value( "/Composer/geometry" ).toByteArray() );
    QVariant splitterState = settings.value( "/Composer/splitterState" );
-  if ( splitterState != QVariant::QVariant() )
+  if ( splitterState != QVariant() )
    {
      
//mSplitter->restoreState(settings.value("/Composer/splitterState").toByteArray());
    }


Possibly due to gcc 4.5.0 here? Anyways, it compiles fine with the patch 
applied.

Regards,
Vincent Schut.


More information about the Qgis-developer mailing list