Skip to content

Commit

Permalink
Migrate a Qt3 construct to Qt4
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@5915 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Oct 6, 2006
1 parent cb08fde commit eadd9b1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/providers/ogr/qgsogrprovider.cpp
Expand Up @@ -17,8 +17,6 @@ email : sherman at mrcc.com
/* $Id$ */

#include "qgsogrprovider.h"
//Added by qt3to4:
#include <Q3CString>

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

QString fld = fldDef->GetNameRef();
Q3CString cstr(ogrFet->GetFieldAsString(attindex));
QByteArray cstr(ogrFet->GetFieldAsString(attindex));
bool numeric = attributeFields[attindex].isNumeric();

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

0 comments on commit eadd9b1

Please sign in to comment.