Skip to content
Permalink
Browse files

Minor coverity fixes

  • Loading branch information
nyalldawson committed Sep 6, 2015
1 parent bb9addd commit b00629882db2fa4242197c1a88386d5c2d28ff18
Showing with 12 additions and 2 deletions.
  1. +1 −0 src/app/qgisapp.cpp
  2. +1 −1 src/app/qgsmaptooladdcircularstring.cpp
  3. +9 −1 src/core/pal/problem.cpp
  4. +1 −0 src/core/pal/util.h
@@ -976,6 +976,7 @@ QgisApp::QgisApp()
, mProjectLastModified()
, mWelcomePage( 0 )
, mCentralContainer( 0 )
, mProjOpen( 0 )
{
smInstance = this;
setupUi( this );
@@ -64,7 +64,7 @@ void QgsMapToolAddCircularString::setParentTool( QgsMapTool* newTool, QgsMapTool

void QgsMapToolAddCircularString::keyPressEvent( QKeyEvent* e )
{
if ( e->isAutoRepeat() )
if ( e && e->isAutoRepeat() )
{
return;
}
@@ -39,6 +39,7 @@
#include "problem.h"
#include "util.h"
#include "priorityqueue.h"
#include "internalexception.h"
#include <iostream>
#include <fstream>
#include <cfloat>
@@ -328,7 +329,14 @@ namespace pal
for ( j = 0; j < featNbLp[i]; j++ )
{
label = featStartId[i] + j;
list->insert( label, ( double ) mLabelPositions.at( label )->getNumOverlaps() );
try
{
list->insert( label, ( double ) mLabelPositions.at( label )->getNumOverlaps() );
}
catch ( pal::InternalException::Full )
{
continue;
}
}

while ( list->getSize() > 0 ) // O (log size)
@@ -53,6 +53,7 @@ namespace pal
Feats()
: feature( 0 )
, shape( 0 )
, priority( 0 )
{}

FeaturePart *feature;

0 comments on commit b006298

Please sign in to comment.
You can’t perform that action at this time.