Skip to content
Permalink
Browse files
Replace deprecated QRexExp API
Qt 4.6 saw QRegExp::numCaptures() change to QRegExp::captureCount().
  • Loading branch information
simonsonc committed Jun 6, 2014
1 parent ade4c7b commit e7056f6447e80feb6d888e905d5c273402c9c6b2
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 e7056f6

Please sign in to comment.