Skip to content

Commit 8c445c8

Browse files
author
g_j_m
committed
Migrate a Qt3 construct to Qt4
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5915 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 2942120 commit 8c445c8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/providers/ogr/qgsogrprovider.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ email : sherman at mrcc.com
1717
/* $Id$ */
1818

1919
#include "qgsogrprovider.h"
20-
//Added by qt3to4:
21-
#include <Q3CString>
2220

2321
#ifndef WIN32
2422
#include <netinet/in.h>
@@ -718,7 +716,7 @@ void QgsOgrProvider::getFeatureAttribute(OGRFeature * ogrFet, QgsFeature * f, in
718716
}
719717

720718
QString fld = fldDef->GetNameRef();
721-
Q3CString cstr(ogrFet->GetFieldAsString(attindex));
719+
QByteArray cstr(ogrFet->GetFieldAsString(attindex));
722720
bool numeric = attributeFields[attindex].isNumeric();
723721

724722
f->addAttribute(fld, mEncoding->toUnicode(cstr), numeric);

0 commit comments

Comments
 (0)