@@ -89,7 +89,7 @@ void QgsCustomProjectionDialog::getProjList ()
89
89
sqlite3_stmt *myPreparedStatement;
90
90
int myResult;
91
91
//check the db is available
92
- myResult = sqlite3_open(QgsApplication::qgisUserDbFilePath(), &myDatabase);
92
+ myResult = sqlite3_open(QgsApplication::qgisUserDbFilePath().toUtf8().data() , &myDatabase);
93
93
if(myResult)
94
94
{
95
95
std::cout << "Can't open database: " << sqlite3_errmsg(myDatabase) << std::endl;
@@ -124,7 +124,7 @@ void QgsCustomProjectionDialog::getEllipsoidList()
124
124
sqlite3_stmt *myPreparedStatement;
125
125
int myResult;
126
126
//check the db is available
127
- myResult = sqlite3_open(QgsApplication::qgisUserDbFilePath(), &myDatabase);
127
+ myResult = sqlite3_open(QgsApplication::qgisUserDbFilePath().toUtf8().data() , &myDatabase);
128
128
if(myResult)
129
129
{
130
130
std::cout << "Can't open database: " << sqlite3_errmsg(myDatabase) << std::endl;
@@ -168,7 +168,7 @@ void QgsCustomProjectionDialog::on_pbnDelete_clicked()
168
168
int myResult;
169
169
QString myName;
170
170
// check the db is available
171
- myResult = sqlite3_open (QgsApplication::qgisUserDbFilePath (), &myDatabase);
171
+ myResult = sqlite3_open (QgsApplication::qgisUserDbFilePath (). toUtf8 (). data () , &myDatabase);
172
172
if (myResult)
173
173
{
174
174
std::cout << " Can't open database: " << sqlite3_errmsg (myDatabase) << std::endl;
@@ -228,7 +228,7 @@ long QgsCustomProjectionDialog::getRecordCount()
228
228
int myResult;
229
229
long myRecordCount=0 ;
230
230
// check the db is available
231
- myResult = sqlite3_open (QgsApplication::qgisUserDbFilePath (), &myDatabase);
231
+ myResult = sqlite3_open (QgsApplication::qgisUserDbFilePath (). toUtf8 (). data () , &myDatabase);
232
232
if (myResult)
233
233
{
234
234
std::cout << " Can't open database: " << sqlite3_errmsg (myDatabase) << std::endl;
@@ -261,7 +261,7 @@ QString QgsCustomProjectionDialog::getProjectionFamilyName(QString theProjection
261
261
int myResult;
262
262
QString myName;
263
263
// check the db is available
264
- myResult = sqlite3_open (QgsApplication::qgisUserDbFilePath (), &myDatabase);
264
+ myResult = sqlite3_open (QgsApplication::qgisUserDbFilePath (). toUtf8 (). data () , &myDatabase);
265
265
if (myResult)
266
266
{
267
267
std::cout << " Can't open database: " << sqlite3_errmsg (myDatabase) << std::endl;
@@ -292,7 +292,7 @@ QString QgsCustomProjectionDialog::getEllipsoidName(QString theEllipsoidAcronym)
292
292
int myResult;
293
293
QString myName;
294
294
// check the db is available
295
- myResult = sqlite3_open (QgsApplication::qgisUserDbFilePath (), &myDatabase);
295
+ myResult = sqlite3_open (QgsApplication::qgisUserDbFilePath (). toUtf8 (). data () , &myDatabase);
296
296
if (myResult)
297
297
{
298
298
std::cout << " Can't open database: " << sqlite3_errmsg (myDatabase) << std::endl;
@@ -323,7 +323,7 @@ QString QgsCustomProjectionDialog::getProjectionFamilyAcronym(QString theProject
323
323
int myResult;
324
324
QString myName;
325
325
// check the db is available
326
- myResult = sqlite3_open (QgsApplication::qgisUserDbFilePath (), &myDatabase);
326
+ myResult = sqlite3_open (QgsApplication::qgisUserDbFilePath (). toUtf8 (). data () , &myDatabase);
327
327
if (myResult)
328
328
{
329
329
std::cout << " Can't open database: " << sqlite3_errmsg (myDatabase) << std::endl;
@@ -354,7 +354,7 @@ QString QgsCustomProjectionDialog::getEllipsoidAcronym(QString theEllipsoidName)
354
354
int myResult;
355
355
QString myName;
356
356
// check the db is available
357
- myResult = sqlite3_open (QgsApplication::qgisUserDbFilePath (), &myDatabase);
357
+ myResult = sqlite3_open (QgsApplication::qgisUserDbFilePath (). toUtf8 (). data () , &myDatabase);
358
358
if (myResult)
359
359
{
360
360
std::cout << " Can't open database: " << sqlite3_errmsg (myDatabase) << std::endl;
@@ -388,7 +388,7 @@ void QgsCustomProjectionDialog::on_pbnFirst_clicked()
388
388
sqlite3_stmt *myPreparedStatement;
389
389
int myResult;
390
390
// check the db is available
391
- myResult = sqlite3_open (QgsApplication::qgisUserDbFilePath (), &myDatabase);
391
+ myResult = sqlite3_open (QgsApplication::qgisUserDbFilePath (). toUtf8 (). data () , &myDatabase);
392
392
if (myResult)
393
393
{
394
394
std::cout << " Can't open database: " << sqlite3_errmsg (myDatabase) << std::endl;
@@ -464,7 +464,7 @@ void QgsCustomProjectionDialog::on_pbnPrevious_clicked()
464
464
sqlite3_stmt *myPreparedStatement;
465
465
int myResult;
466
466
// check the db is available
467
- myResult = sqlite3_open (QgsApplication::qgisUserDbFilePath (), &myDatabase);
467
+ myResult = sqlite3_open (QgsApplication::qgisUserDbFilePath (). toUtf8 (). data () , &myDatabase);
468
468
if (myResult)
469
469
{
470
470
std::cout << " Can't open database: " << sqlite3_errmsg (myDatabase) << std::endl;
@@ -541,7 +541,7 @@ void QgsCustomProjectionDialog::on_pbnNext_clicked()
541
541
sqlite3_stmt *myPreparedStatement;
542
542
int myResult;
543
543
// check the db is available
544
- myResult = sqlite3_open (QgsApplication::qgisUserDbFilePath (), &myDatabase);
544
+ myResult = sqlite3_open (QgsApplication::qgisUserDbFilePath (). toUtf8 (). data () , &myDatabase);
545
545
if (myResult)
546
546
{
547
547
std::cout << " Can't open database: " << sqlite3_errmsg (myDatabase) << std::endl;
@@ -615,7 +615,7 @@ void QgsCustomProjectionDialog::on_pbnLast_clicked()
615
615
sqlite3_stmt *myPreparedStatement;
616
616
int myResult;
617
617
// check the db is available
618
- myResult = sqlite3_open (QgsApplication::qgisUserDbFilePath (), &myDatabase);
618
+ myResult = sqlite3_open (QgsApplication::qgisUserDbFilePath (). toUtf8 (). data () , &myDatabase);
619
619
if (myResult)
620
620
{
621
621
std::cout << " Can't open database: " << sqlite3_errmsg (myDatabase) << std::endl;
@@ -832,7 +832,7 @@ void QgsCustomProjectionDialog::on_pbnSave_clicked()
832
832
sqlite3_stmt *myPreparedStatement;
833
833
int myResult;
834
834
// check the db is available
835
- myResult = sqlite3_open (QgsApplication::qgisUserDbFilePath (), &myDatabase);
835
+ myResult = sqlite3_open (QgsApplication::qgisUserDbFilePath (). toUtf8 (). data () , &myDatabase);
836
836
if (myResult!=SQLITE_OK)
837
837
{
838
838
std::cout << " Can't open database: " << sqlite3_errmsg (myDatabase) <<
@@ -960,7 +960,7 @@ void QgsCustomProjectionDialog::cboProjectionFamily_highlighted( const QString &
960
960
sqlite3_stmt *myPreparedStatement;
961
961
int myResult;
962
962
//check the db is available
963
- myResult = sqlite3_open(QgsApplication::qgisUserDbFilePath(), &myDatabase);
963
+ myResult = sqlite3_open(QgsApplication::qgisUserDbFilePath().toUtf8().data() , &myDatabase);
964
964
if(myResult!=SQLITE_OK)
965
965
{
966
966
std::cout << "Can't open database: " << sqlite3_errmsg(myDatabase) << std::endl;
0 commit comments