Skip to content
Permalink
Browse files
Merge pull request #1426 from simonsonc/qgsvaluemapconfigdlg-deprecat…
…ed-api

Replace deprecated QRexExp API
  • Loading branch information
wonder-sk committed Jun 6, 2014
2 parents 8c513f9 + e7056f6 commit 563f5211dbf95acb1f90268c7f2dd716f388345d
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/gui/editorwidgets/qgsvaluemapconfigdlg.cpp
@@ -192,12 +192,12 @@ void QgsValueMapConfigDlg::loadFromCSVButtonPushed()
QString l = s.readLine().trimmed();

QString key, val;
if ( re0.indexIn( l ) >= 0 && re0.numCaptures() == 2 )
if ( re0.indexIn( l ) >= 0 && re0.captureCount() == 2 )
{
key = re0.cap( 1 ).trimmed();
val = re0.cap( 2 ).trimmed();
}
else if ( re1.indexIn( l ) >= 0 && re1.numCaptures() == 2 )
else if ( re1.indexIn( l ) >= 0 && re1.captureCount() == 2 )
{
key = re1.cap( 1 ).trimmed();
val = re1.cap( 2 ).trimmed();

0 comments on commit 563f521

Please sign in to comment.