Skip to content

Commit

Permalink
Replace deprecated QRexExp API
Browse files Browse the repository at this point in the history
Qt 4.6 saw QRegExp::numCaptures() change to QRegExp::captureCount().
  • Loading branch information
simonsonc committed Jun 6, 2014
1 parent ade4c7b commit e7056f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/editorwidgets/qgsvaluemapconfigdlg.cpp
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 e7056f6

Please sign in to comment.