Skip to content

Commit 92b5a2c

Browse files
committedJul 17, 2011
fix build problem with Qt 4.4
1 parent 16624aa commit 92b5a2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/providers/postgres/qgspostgresprovider.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,7 @@ bool QgsPostgresProvider::loadFields()
977977
fieldType = QVariant::Double;
978978

979979
QRegExp re( "numeric\\((\\d+),(\\d+)\\)" );
980-
if ( re.exactMatch( formattedFieldType ) && re.captureCount() == 2 )
980+
if ( re.exactMatch( formattedFieldType ) )
981981
{
982982
fieldSize = re.cap( 1 ).toInt();
983983
fieldPrec = re.cap( 2 ).toInt();
@@ -1008,7 +1008,7 @@ bool QgsPostgresProvider::loadFields()
10081008
fieldType = QVariant::String;
10091009

10101010
QRegExp re( "char\\((\\d+)\\)" );
1011-
if ( re.exactMatch( formattedFieldType ) && re.captureCount() == 1 )
1011+
if ( re.exactMatch( formattedFieldType ) )
10121012
{
10131013
fieldSize = re.cap( 1 ).toInt();
10141014
}

0 commit comments

Comments
 (0)
Please sign in to comment.