Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix warnings
  • Loading branch information
jef-n committed Sep 1, 2012
1 parent 42a9d01 commit b43ed34
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/core/qgsexpression.cpp
Expand Up @@ -898,7 +898,10 @@ int QgsExpression::functionCount()


QgsExpression::QgsExpression( const QString& expr )
: mExpression( expr ), mRowNumber( 0 ), mCalc( NULL ), mScale( 0 )
: mExpression( expr )
, mRowNumber( 0 )
, mScale( 0 )
, mCalc( NULL )
{
mRootNode = ::parseExpression( mExpression, mParserErrorString );

Expand Down
3 changes: 2 additions & 1 deletion src/core/qgsexpression.h
Expand Up @@ -507,6 +507,8 @@ class CORE_EXPORT QgsExpression
// internally used to create an empty expression
QgsExpression() : mRootNode( NULL ), mRowNumber( 0 ), mCalc( NULL ) {}

void initGeomCalculator();

QString mExpression;
Node* mRootNode;

Expand All @@ -516,7 +518,6 @@ class CORE_EXPORT QgsExpression
int mRowNumber;
double mScale;

void initGeomCalculator();
QgsDistanceArea* mCalc;
};

Expand Down
2 changes: 2 additions & 0 deletions src/gui/qgsmessagebar.h
Expand Up @@ -43,12 +43,14 @@ class GUI_EXPORT QgsMessageBar: public QFrame

/*! display a widget on the bar after hiding the currently visible one
* and putting it in a stack
* @param widget widget to add
* @param level is 0 for information, 1 for warning, 2 for critical
*/
void pushWidget( QWidget *widget, int level = 0 );

/*! remove the passed widget from the bar (if previously added),
* then display the next one in the stack if any or hide the bar
* @param widget widget to remove
* @return true if the widget was removed, false otherwise
*/
bool popWidget( QWidget *widget );
Expand Down
1 change: 0 additions & 1 deletion tests/src/core/testqgscomposerhtml.cpp
Expand Up @@ -82,7 +82,6 @@ void TestQgsComposerHtml::tableMultiFrame()
bool result = true;
//page1
htmlItem->setUrl( QUrl( QString( "file:///%1" ).arg( QString( TEST_DATA_DIR ) + QDir::separator() + "html_table.html" ) ) );
int nFrames = htmlItem->nFrames();
htmlItem->frame( 0 )->setFrameEnabled( true );
QgsCompositionChecker checker1( "Composer html table", mComposition, QString( QString( TEST_DATA_DIR ) + QDir::separator() +
"control_images" + QDir::separator() + "expected_composerhtml" + QDir::separator() + "composerhtml_table_multiframe1.png" ) );
Expand Down

0 comments on commit b43ed34

Please sign in to comment.