@@ -152,7 +152,7 @@ QHaikuIntegration *QHaikuIntegration::createHaikuIntegration(const QStringList&
152
152
153
153
QString appPath = QCoreApplication::applicationFilePath ();
154
154
155
- BFile appFile (appPath.toUtf8 (), B_READ_ONLY);
155
+ BFile appFile (appPath.toUtf8 (). constData () , B_READ_ONLY);
156
156
if (appFile.InitCheck () == B_OK) {
157
157
BAppFileInfo info (&appFile);
158
158
if (info.InitCheck () == B_OK) {
@@ -170,7 +170,7 @@ QHaikuIntegration *QHaikuIntegration::createHaikuIntegration(const QStringList&
170
170
thread_id my_thread;
171
171
172
172
if (be_app == NULL ) {
173
- haikuApplication = new HQApplication (appSignature.toUtf8 ());
173
+ haikuApplication = new HQApplication (appSignature.toUtf8 (). constData () );
174
174
be_app = haikuApplication;
175
175
176
176
my_thread = spawn_thread (haikuAppThread, " BApplication_thread" , B_NORMAL_PRIORITY, (void *)haikuApplication);
@@ -215,7 +215,7 @@ QHaikuIntegration *QHaikuIntegration::createHaikuIntegration(const QStringList&
215
215
env += resultUserEnv.split (" \n " );
216
216
217
217
foreach (const QString &line, env) {
218
- putenv (line.toUtf8 ());
218
+ putenv (line.toUtf8 (). constData () );
219
219
}
220
220
}
221
221
// Enable software rendering for QML
@@ -237,7 +237,7 @@ QHaikuIntegration *QHaikuIntegration::createHaikuIntegration(const QStringList&
237
237
http_proxy += username + " :" + password + " @" ;
238
238
http_proxy += settings.value (" http_proxy_address" , QString (" " )).toString () + " :" ;
239
239
http_proxy += QString::number (settings.value (" http_proxy_port" , 8080 ).toInt ()) + " /" ;
240
- putenv (http_proxy.toUtf8 ());
240
+ putenv (http_proxy.toUtf8 (). constData () );
241
241
}
242
242
if (settings.value (" https_proxy_enable" , false ).toBool ()) {
243
243
QString username = settings.value (" https_proxy_username" , QString (" " )).toString ();
@@ -249,7 +249,7 @@ QHaikuIntegration *QHaikuIntegration::createHaikuIntegration(const QStringList&
249
249
https_proxy += username + " :" + password + " @" ;
250
250
https_proxy += settings.value (" https_proxy_address" , QString (" " )).toString () + " :" ;
251
251
https_proxy += QString::number (settings.value (" https_proxy_port" , 8080 ).toInt ()) + " /" ;
252
- putenv (https_proxy.toUtf8 ());
252
+ putenv (https_proxy.toUtf8 (). constData () );
253
253
}
254
254
if (settings.value (" ftp_proxy_enable" , false ).toBool ()) {
255
255
QString username = settings.value (" ftp_proxy_username" , QString (" " )).toString ();
@@ -261,12 +261,12 @@ QHaikuIntegration *QHaikuIntegration::createHaikuIntegration(const QStringList&
261
261
ftp_proxy += username + " :" + password + " @" ;
262
262
ftp_proxy += settings.value (" ftp_proxy_address" , QString (" " )).toString () + " :" ;
263
263
ftp_proxy += QString::number (settings.value (" ftp_proxy_port" , 8080 ).toInt ()) + " /" ;
264
- putenv (ftp_proxy.toUtf8 ());
264
+ putenv (ftp_proxy.toUtf8 (). constData () );
265
265
}
266
266
QString no_proxy = settings.value (" no_proxy_list" , QString (" " )).toString ();
267
267
if (!no_proxy.isEmpty ()) {
268
268
no_proxy = " no_proxy=\" " + no_proxy + " \" " ;
269
- putenv (no_proxy.toUtf8 ());
269
+ putenv (no_proxy.toUtf8 (). constData () );
270
270
}
271
271
}
272
272
settings.endGroup ();
0 commit comments