Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Migrate a Qt3 construct to Qt4
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5915 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Oct 6, 2006
1 parent 2942120 commit 8c445c8
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 8c445c8

Please sign in to comment.