@@ -191,7 +191,7 @@ void QgsCustomProjectionDialog::on_pbnDelete_clicked()
191
191
}
192
192
// Set up the query to retrieve the projection information needed to populate the ELLIPSOID list
193
193
QString mySql = " delete from tbl_srs where srs_id='" + mCurrentRecordId + " '" ;
194
- myResult = sqlite3_prepare ( myDatabase, mySql.toUtf8 (), mySql.length (), &myPreparedStatement, &myTail );
194
+ myResult = sqlite3_prepare ( myDatabase, mySql.toUtf8 (), mySql.toUtf8 (). length (), &myPreparedStatement, &myTail );
195
195
// XXX Need to free memory from the error msg if one is set
196
196
QgsDebugMsg ( QString ( " Query to delete current:%1" ).arg ( mySql ) );
197
197
if ( myResult == SQLITE_OK )
@@ -249,7 +249,7 @@ long QgsCustomProjectionDialog::getRecordCount()
249
249
}
250
250
// Set up the query to retrieve the projection information needed to populate the ELLIPSOID list
251
251
QString mySql = " select count(*) from tbl_srs" ;
252
- myResult = sqlite3_prepare ( myDatabase, mySql.toUtf8 (), mySql.length (), &myPreparedStatement, &myTail );
252
+ myResult = sqlite3_prepare ( myDatabase, mySql.toUtf8 (), mySql.toUtf8 (). length (), &myPreparedStatement, &myTail );
253
253
// XXX Need to free memory from the error msg if one is set
254
254
if ( myResult == SQLITE_OK )
255
255
{
@@ -284,7 +284,7 @@ QString QgsCustomProjectionDialog::getProjectionFamilyName( QString theProjectio
284
284
}
285
285
// Set up the query to retrieve the projection information needed to populate the ELLIPSOID list
286
286
QString mySql = " select name from tbl_projection where acronym='" + theProjectionFamilyAcronym + " '" ;
287
- myResult = sqlite3_prepare ( myDatabase, mySql.toUtf8 (), mySql.length (), &myPreparedStatement, &myTail );
287
+ myResult = sqlite3_prepare ( myDatabase, mySql.toUtf8 (), mySql.toUtf8 (). length (), &myPreparedStatement, &myTail );
288
288
// XXX Need to free memory from the error msg if one is set
289
289
if ( myResult == SQLITE_OK )
290
290
{
@@ -315,7 +315,7 @@ QString QgsCustomProjectionDialog::getEllipsoidName( QString theEllipsoidAcronym
315
315
}
316
316
// Set up the query to retrieve the projection information needed to populate the ELLIPSOID list
317
317
QString mySql = " select name from tbl_ellipsoid where acronym='" + theEllipsoidAcronym + " '" ;
318
- myResult = sqlite3_prepare ( myDatabase, mySql.toUtf8 (), mySql.length (), &myPreparedStatement, &myTail );
318
+ myResult = sqlite3_prepare ( myDatabase, mySql.toUtf8 (), mySql.toUtf8 (). length (), &myPreparedStatement, &myTail );
319
319
// XXX Need to free memory from the error msg if one is set
320
320
if ( myResult == SQLITE_OK )
321
321
{
@@ -346,7 +346,7 @@ QString QgsCustomProjectionDialog::getProjectionFamilyAcronym( QString theProjec
346
346
}
347
347
// Set up the query to retrieve the projection information needed to populate the ELLIPSOID list
348
348
QString mySql = " select acronym from tbl_projection where name='" + theProjectionFamilyName + " '" ;
349
- myResult = sqlite3_prepare ( myDatabase, mySql.toUtf8 (), mySql.length (), &myPreparedStatement, &myTail );
349
+ myResult = sqlite3_prepare ( myDatabase, mySql.toUtf8 (), mySql.toUtf8 (). length (), &myPreparedStatement, &myTail );
350
350
// XXX Need to free memory from the error msg if one is set
351
351
if ( myResult == SQLITE_OK )
352
352
{
@@ -377,7 +377,7 @@ QString QgsCustomProjectionDialog::getEllipsoidAcronym( QString theEllipsoidName
377
377
}
378
378
// Set up the query to retrieve the projection information needed to populate the ELLIPSOID list
379
379
QString mySql = " select acronym from tbl_ellipsoid where name='" + theEllipsoidName + " '" ;
380
- myResult = sqlite3_prepare ( myDatabase, mySql.toUtf8 (), mySql.length (), &myPreparedStatement, &myTail );
380
+ myResult = sqlite3_prepare ( myDatabase, mySql.toUtf8 (), mySql.toUtf8 (). length (), &myPreparedStatement, &myTail );
381
381
// XXX Need to free memory from the error msg if one is set
382
382
if ( myResult == SQLITE_OK )
383
383
{
@@ -410,7 +410,7 @@ void QgsCustomProjectionDialog::on_pbnFirst_clicked()
410
410
411
411
QString mySql = " select * from tbl_srs order by srs_id limit 1" ;
412
412
QgsDebugMsg ( QString ( " Query to move first:%1" ).arg ( mySql ) );
413
- myResult = sqlite3_prepare ( myDatabase, mySql.toUtf8 (), mySql.length (), &myPreparedStatement, &myTail );
413
+ myResult = sqlite3_prepare ( myDatabase, mySql.toUtf8 (), mySql.toUtf8 (). length (), &myPreparedStatement, &myTail );
414
414
// XXX Need to free memory from the error msg if one is set
415
415
if ( myResult == SQLITE_OK )
416
416
{
@@ -482,7 +482,7 @@ void QgsCustomProjectionDialog::on_pbnPrevious_clicked()
482
482
483
483
QString mySql = " select * from tbl_srs where srs_id < " + mCurrentRecordId + " order by srs_id desc limit 1" ;
484
484
QgsDebugMsg ( QString ( " Query to move previous:%1" ).arg ( mySql ) );
485
- myResult = sqlite3_prepare ( myDatabase, mySql.toUtf8 (), mySql.length (), &myPreparedStatement, &myTail );
485
+ myResult = sqlite3_prepare ( myDatabase, mySql.toUtf8 (), mySql.toUtf8 (). length (), &myPreparedStatement, &myTail );
486
486
// XXX Need to free memory from the error msg if one is set
487
487
if ( myResult == SQLITE_OK )
488
488
{
@@ -555,7 +555,7 @@ void QgsCustomProjectionDialog::on_pbnNext_clicked()
555
555
556
556
QString mySql = " select * from tbl_srs where srs_id > " + mCurrentRecordId + " order by srs_id asc limit 1" ;
557
557
QgsDebugMsg ( QString ( " Query to move next:%1" ).arg ( mySql ) );
558
- myResult = sqlite3_prepare ( myDatabase, mySql.toUtf8 (), mySql.length (), &myPreparedStatement, &myTail );
558
+ myResult = sqlite3_prepare ( myDatabase, mySql.toUtf8 (), mySql.toUtf8 (). length (), &myPreparedStatement, &myTail );
559
559
// XXX Need to free memory from the error msg if one is set
560
560
if ( myResult == SQLITE_OK )
561
561
{
@@ -624,7 +624,7 @@ void QgsCustomProjectionDialog::on_pbnLast_clicked()
624
624
625
625
QString mySql = " select * from tbl_srs order by srs_id desc limit 1" ;
626
626
QgsDebugMsg ( QString ( " Query to move last:%1" ).arg ( mySql ) );
627
- myResult = sqlite3_prepare ( myDatabase, mySql.toUtf8 (), mySql.length (), &myPreparedStatement, &myTail );
627
+ myResult = sqlite3_prepare ( myDatabase, mySql.toUtf8 (), mySql.toUtf8 (). length (), &myPreparedStatement, &myTail );
628
628
// XXX Need to free memory from the error msg if one is set
629
629
if ( myResult == SQLITE_OK )
630
630
{
@@ -842,7 +842,7 @@ void QgsCustomProjectionDialog::on_pbnSave_clicked()
842
842
assert ( myResult == SQLITE_OK );
843
843
}
844
844
QgsDebugMsg ( QString ( " Update or insert sql \n %1" ).arg ( mySql ) );
845
- myResult = sqlite3_prepare ( myDatabase, mySql.toUtf8 (), mySql.length (), &myPreparedStatement, &myTail );
845
+ myResult = sqlite3_prepare ( myDatabase, mySql.toUtf8 (), mySql.toUtf8 (). length (), &myPreparedStatement, &myTail );
846
846
sqlite3_step ( myPreparedStatement );
847
847
// XXX Need to free memory from the error msg if one is set
848
848
if ( myResult != SQLITE_OK )
0 commit comments