Skip to content
Permalink
Browse files
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 8c445c82440f00a796297002ea9744a85468863a
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 8c445c8

Please sign in to comment.