Skip to content

Commit

Permalink
Merge pull request #1426 from simonsonc/qgsvaluemapconfigdlg-deprecat…
Browse files Browse the repository at this point in the history
…ed-api

Replace deprecated QRexExp API
  • Loading branch information
wonder-sk committed Jun 6, 2014
2 parents 8c513f9 + e7056f6 commit 563f521
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/editorwidgets/qgsvaluemapconfigdlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 563f521

Please sign in to comment.