Skip to content
Permalink
Browse files

Fix coverity unchecked return value warning

  • Loading branch information
nyalldawson committed Sep 18, 2017
1 parent 57beefd commit 31f6a893cab75698f188554cea0f108d019dba4a
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/gui/qgsnewhttpconnection.cpp
@@ -35,8 +35,8 @@ QgsNewHttpConnection::QgsNewHttpConnection( QWidget *parent, ConnectionTypes typ
connect( buttonBox, &QDialogButtonBox::helpRequested, this, &QgsNewHttpConnection::showHelp );

QRegExp rx( "/connections-([^/]+)/" );
rx.indexIn( baseKey );
setWindowTitle( tr( "Create a New %1 Connection" ).arg( rx.cap( 1 ).toUpper() ) );
if ( rx.indexIn( baseKey ) != -1 )
setWindowTitle( tr( "Create a New %1 Connection" ).arg( rx.cap( 1 ).toUpper() ) );

// It would be obviously much better to use mBaseKey also for credentials,
// but for some strange reason a different hardcoded key was used instead.

0 comments on commit 31f6a89

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