Skip to content

Commit 563f521

Browse files
committedJun 6, 2014
Merge pull request #1426 from simonsonc/qgsvaluemapconfigdlg-deprecated-api
Replace deprecated QRexExp API
2 parents 8c513f9 + e7056f6 commit 563f521

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/gui/editorwidgets/qgsvaluemapconfigdlg.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,12 +192,12 @@ void QgsValueMapConfigDlg::loadFromCSVButtonPushed()
192192
QString l = s.readLine().trimmed();
193193

194194
QString key, val;
195-
if ( re0.indexIn( l ) >= 0 && re0.numCaptures() == 2 )
195+
if ( re0.indexIn( l ) >= 0 && re0.captureCount() == 2 )
196196
{
197197
key = re0.cap( 1 ).trimmed();
198198
val = re0.cap( 2 ).trimmed();
199199
}
200-
else if ( re1.indexIn( l ) >= 0 && re1.numCaptures() == 2 )
200+
else if ( re1.indexIn( l ) >= 0 && re1.captureCount() == 2 )
201201
{
202202
key = re1.cap( 1 ).trimmed();
203203
val = re1.cap( 2 ).trimmed();

0 commit comments

Comments
 (0)
Please sign in to comment.