@@ -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;
@@ -263,7 +263,7 @@ QString QgsCustomProjectionDialog::getProjectionFamilyName(QString theProjection
263
263
int myResult;
264
264
QString myName;
265
265
// check the db is available
266
- myResult = sqlite3_open (QgsApplication::qgisUserDbFilePath (), &myDatabase);
266
+ myResult = sqlite3_open (QgsApplication::qgisUserDbFilePath (). toUtf8 (). data () , &myDatabase);
267
267
if (myResult)
268
268
{
269
269
std::cout << " Can't open database: " << sqlite3_errmsg (myDatabase) << std::endl;
@@ -294,7 +294,7 @@ QString QgsCustomProjectionDialog::getEllipsoidName(QString theEllipsoidAcronym)
294
294
int myResult;
295
295
QString myName;
296
296
// check the db is available
297
- myResult = sqlite3_open (QgsApplication::qgisUserDbFilePath (), &myDatabase);
297
+ myResult = sqlite3_open (QgsApplication::qgisUserDbFilePath (). toUtf8 (). data () , &myDatabase);
298
298
if (myResult)
299
299
{
300
300
std::cout << " Can't open database: " << sqlite3_errmsg (myDatabase) << std::endl;
@@ -325,7 +325,7 @@ QString QgsCustomProjectionDialog::getProjectionFamilyAcronym(QString theProject
325
325
int myResult;
326
326
QString myName;
327
327
// check the db is available
328
- myResult = sqlite3_open (QgsApplication::qgisUserDbFilePath (), &myDatabase);
328
+ myResult = sqlite3_open (QgsApplication::qgisUserDbFilePath (). toUtf8 (). data () , &myDatabase);
329
329
if (myResult)
330
330
{
331
331
std::cout << " Can't open database: " << sqlite3_errmsg (myDatabase) << std::endl;
@@ -356,7 +356,7 @@ QString QgsCustomProjectionDialog::getEllipsoidAcronym(QString theEllipsoidName)
356
356
int myResult;
357
357
QString myName;
358
358
// check the db is available
359
- myResult = sqlite3_open (QgsApplication::qgisUserDbFilePath (), &myDatabase);
359
+ myResult = sqlite3_open (QgsApplication::qgisUserDbFilePath (). toUtf8 (). data () , &myDatabase);
360
360
if (myResult)
361
361
{
362
362
std::cout << " Can't open database: " << sqlite3_errmsg (myDatabase) << std::endl;
@@ -390,7 +390,7 @@ void QgsCustomProjectionDialog::on_pbnFirst_clicked()
390
390
sqlite3_stmt *myPreparedStatement;
391
391
int myResult;
392
392
// check the db is available
393
- myResult = sqlite3_open (QgsApplication::qgisUserDbFilePath (), &myDatabase);
393
+ myResult = sqlite3_open (QgsApplication::qgisUserDbFilePath (). toUtf8 (). data () , &myDatabase);
394
394
if (myResult)
395
395
{
396
396
std::cout << " Can't open database: " << sqlite3_errmsg (myDatabase) << std::endl;
@@ -468,7 +468,7 @@ void QgsCustomProjectionDialog::on_pbnPrevious_clicked()
468
468
sqlite3_stmt *myPreparedStatement;
469
469
int myResult;
470
470
// check the db is available
471
- myResult = sqlite3_open (QgsApplication::qgisUserDbFilePath (), &myDatabase);
471
+ myResult = sqlite3_open (QgsApplication::qgisUserDbFilePath (). toUtf8 (). data () , &myDatabase);
472
472
if (myResult)
473
473
{
474
474
std::cout << " Can't open database: " << sqlite3_errmsg (myDatabase) << std::endl;
@@ -547,7 +547,7 @@ void QgsCustomProjectionDialog::on_pbnNext_clicked()
547
547
sqlite3_stmt *myPreparedStatement;
548
548
int myResult;
549
549
// check the db is available
550
- myResult = sqlite3_open (QgsApplication::qgisUserDbFilePath (), &myDatabase);
550
+ myResult = sqlite3_open (QgsApplication::qgisUserDbFilePath (). toUtf8 (). data () , &myDatabase);
551
551
if (myResult)
552
552
{
553
553
std::cout << " Can't open database: " << sqlite3_errmsg (myDatabase) << std::endl;
@@ -623,7 +623,7 @@ void QgsCustomProjectionDialog::on_pbnLast_clicked()
623
623
sqlite3_stmt *myPreparedStatement;
624
624
int myResult;
625
625
// check the db is available
626
- myResult = sqlite3_open (QgsApplication::qgisUserDbFilePath (), &myDatabase);
626
+ myResult = sqlite3_open (QgsApplication::qgisUserDbFilePath (). toUtf8 (). data () , &myDatabase);
627
627
if (myResult)
628
628
{
629
629
std::cout << " Can't open database: " << sqlite3_errmsg (myDatabase) << std::endl;
@@ -842,7 +842,7 @@ void QgsCustomProjectionDialog::on_pbnSave_clicked()
842
842
sqlite3_stmt *myPreparedStatement;
843
843
int myResult;
844
844
// check the db is available
845
- myResult = sqlite3_open (QgsApplication::qgisUserDbFilePath (), &myDatabase);
845
+ myResult = sqlite3_open (QgsApplication::qgisUserDbFilePath (). toUtf8 (). data () , &myDatabase);
846
846
if (myResult!=SQLITE_OK)
847
847
{
848
848
std::cout << " Can't open database: " << sqlite3_errmsg (myDatabase) <<
@@ -970,7 +970,7 @@ void QgsCustomProjectionDialog::cboProjectionFamily_highlighted( const QString &
970
970
sqlite3_stmt *myPreparedStatement;
971
971
int myResult;
972
972
//check the db is available
973
- myResult = sqlite3_open(QgsApplication::qgisUserDbFilePath(), &myDatabase);
973
+ myResult = sqlite3_open(QgsApplication::qgisUserDbFilePath().toUtf8().data() , &myDatabase);
974
974
if(myResult!=SQLITE_OK)
975
975
{
976
976
std::cout << "Can't open database: " << sqlite3_errmsg(myDatabase) << std::endl;
0 commit comments