@@ -191,7 +191,7 @@ void QgsCustomProjectionDialog::on_pbnDelete_clicked()
191191 }
192192 // Set up the query to retrieve the projection information needed to populate the ELLIPSOID list
193193 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 );
195195 // XXX Need to free memory from the error msg if one is set
196196 QgsDebugMsg ( QString ( " Query to delete current:%1" ).arg ( mySql ) );
197197 if ( myResult == SQLITE_OK )
@@ -249,7 +249,7 @@ long QgsCustomProjectionDialog::getRecordCount()
249249 }
250250 // Set up the query to retrieve the projection information needed to populate the ELLIPSOID list
251251 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 );
253253 // XXX Need to free memory from the error msg if one is set
254254 if ( myResult == SQLITE_OK )
255255 {
@@ -284,7 +284,7 @@ QString QgsCustomProjectionDialog::getProjectionFamilyName( QString theProjectio
284284 }
285285 // Set up the query to retrieve the projection information needed to populate the ELLIPSOID list
286286 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 );
288288 // XXX Need to free memory from the error msg if one is set
289289 if ( myResult == SQLITE_OK )
290290 {
@@ -315,7 +315,7 @@ QString QgsCustomProjectionDialog::getEllipsoidName( QString theEllipsoidAcronym
315315 }
316316 // Set up the query to retrieve the projection information needed to populate the ELLIPSOID list
317317 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 );
319319 // XXX Need to free memory from the error msg if one is set
320320 if ( myResult == SQLITE_OK )
321321 {
@@ -346,7 +346,7 @@ QString QgsCustomProjectionDialog::getProjectionFamilyAcronym( QString theProjec
346346 }
347347 // Set up the query to retrieve the projection information needed to populate the ELLIPSOID list
348348 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 );
350350 // XXX Need to free memory from the error msg if one is set
351351 if ( myResult == SQLITE_OK )
352352 {
@@ -377,7 +377,7 @@ QString QgsCustomProjectionDialog::getEllipsoidAcronym( QString theEllipsoidName
377377 }
378378 // Set up the query to retrieve the projection information needed to populate the ELLIPSOID list
379379 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 );
381381 // XXX Need to free memory from the error msg if one is set
382382 if ( myResult == SQLITE_OK )
383383 {
@@ -410,7 +410,7 @@ void QgsCustomProjectionDialog::on_pbnFirst_clicked()
410410
411411 QString mySql = " select * from tbl_srs order by srs_id limit 1" ;
412412 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 );
414414 // XXX Need to free memory from the error msg if one is set
415415 if ( myResult == SQLITE_OK )
416416 {
@@ -482,7 +482,7 @@ void QgsCustomProjectionDialog::on_pbnPrevious_clicked()
482482
483483 QString mySql = " select * from tbl_srs where srs_id < " + mCurrentRecordId + " order by srs_id desc limit 1" ;
484484 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 );
486486 // XXX Need to free memory from the error msg if one is set
487487 if ( myResult == SQLITE_OK )
488488 {
@@ -555,7 +555,7 @@ void QgsCustomProjectionDialog::on_pbnNext_clicked()
555555
556556 QString mySql = " select * from tbl_srs where srs_id > " + mCurrentRecordId + " order by srs_id asc limit 1" ;
557557 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 );
559559 // XXX Need to free memory from the error msg if one is set
560560 if ( myResult == SQLITE_OK )
561561 {
@@ -624,7 +624,7 @@ void QgsCustomProjectionDialog::on_pbnLast_clicked()
624624
625625 QString mySql = " select * from tbl_srs order by srs_id desc limit 1" ;
626626 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 );
628628 // XXX Need to free memory from the error msg if one is set
629629 if ( myResult == SQLITE_OK )
630630 {
@@ -842,7 +842,7 @@ void QgsCustomProjectionDialog::on_pbnSave_clicked()
842842 assert ( myResult == SQLITE_OK );
843843 }
844844 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 );
846846 sqlite3_step ( myPreparedStatement );
847847 // XXX Need to free memory from the error msg if one is set
848848 if ( myResult != SQLITE_OK )
0 commit comments