Skip to content
Permalink
Browse files
Migrate a Qt3 construct to Qt4
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 eadd9b12db70b25d89f7d05a898dbb4d12974121
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/providers/ogr/qgsogrprovider.cpp
@@ -17,8 +17,6 @@ email : sherman at mrcc.com
/* $Id$ */

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

#ifndef WIN32
#include <netinet/in.h>
@@ -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);

0 comments on commit eadd9b1

Please sign in to comment.