Permalink
Browse files

Convert {to,from}Ascii to {to,from}Latin1.

The ascii functions are depreciated in Qt5 and don't actually do what they are supposed to do in Qt4.
  • Loading branch information...
daniel-kristjansson committed Feb 24, 2013
1 parent 8680f2b commit f894ecb5b9e1934e84463cf7a1029c6d2b1a2cf5
Showing with 248 additions and 248 deletions.
  1. +1 −1 mythtv/external/qjson/src/qobjecthelper.cpp
  2. +4 −4 mythtv/libs/libmyth/audio/audiooutputalsa.cpp
  3. +3 −3 mythtv/libs/libmyth/audio/audiooutputjack.cpp
  4. +3 −3 mythtv/libs/libmyth/audio/audiooutputoss.cpp
  5. +1 −1 mythtv/libs/libmyth/audio/audiooutputpulse.cpp
  6. +1 −1 mythtv/libs/libmyth/audio/spdifencoder.cpp
  7. +3 −3 mythtv/libs/libmyth/mediamonitor-darwin.cpp
  8. +8 −8 mythtv/libs/libmyth/mediamonitor-unix.cpp
  9. +3 −3 mythtv/libs/libmyth/mythdialogs.cpp
  10. +1 −1 mythtv/libs/libmyth/mythmediamonitor.cpp
  11. +1 −1 mythtv/libs/libmyth/remoteutil.cpp
  12. +4 −4 mythtv/libs/libmyth/settings.cpp
  13. +1 −1 mythtv/libs/libmyth/storagegroupeditor.cpp
  14. +1 −1 mythtv/libs/libmythbase/filesysteminfo.cpp
  15. +1 −1 mythtv/libs/libmythbase/iso639.cpp
  16. +4 −4 mythtv/libs/libmythbase/iso639.h
  17. +1 −1 mythtv/libs/libmythbase/mythcdrom-linux.cpp
  18. +2 −2 mythtv/libs/libmythbase/mythcommandlineparser.cpp
  19. +1 −1 mythtv/libs/libmythbase/mythdownloadmanager.cpp
  20. +4 −4 mythtv/libs/libmythbase/mythmiscutil.cpp
  21. +1 −1 mythtv/libs/libmythbase/mythplugin.cpp
  22. +1 −1 mythtv/libs/libmythbase/plist.cpp
  23. +4 −4 mythtv/libs/libmythbase/storagegroup.cpp
  24. +4 −4 mythtv/libs/libmythbase/unzip.cpp
  25. +1 −1 mythtv/libs/libmythfreemheg/BaseClasses.h
  26. +1 −1 mythtv/libs/libmythfreemheg/Engine.cpp
  27. +1 −1 mythtv/libs/libmythfreemheg/Groups.cpp
  28. +1 −1 mythtv/libs/libmythmetadata/bluraymetadata.cpp
  29. +2 −2 mythtv/libs/libmythservicecontracts/service.cpp
  30. +9 −9 mythtv/libs/libmythtv/AirPlay/mythairplayserver.cpp
  31. +3 −3 mythtv/libs/libmythtv/AirPlay/mythraopconnection.cpp
  32. +1 −1 mythtv/libs/libmythtv/AirPlay/mythraopdevice.cpp
  33. +1 −1 mythtv/libs/libmythtv/Bluray/bdringbuffer.cpp
  34. +6 −6 mythtv/libs/libmythtv/HLS/httplivestream.cpp
  35. +4 −4 mythtv/libs/libmythtv/HLS/httplivestreambuffer.cpp
  36. +2 −2 mythtv/libs/libmythtv/avformatdecoder.cpp
  37. +5 −5 mythtv/libs/libmythtv/avformatwriter.cpp
  38. +7 −7 mythtv/libs/libmythtv/cardutil.cpp
  39. +1 −1 mythtv/libs/libmythtv/cc608decoder.cpp
  40. +4 −4 mythtv/libs/libmythtv/cc708window.cpp
  41. +38 −38 mythtv/libs/libmythtv/channelscan/channelimporter.cpp
  42. +5 −5 mythtv/libs/libmythtv/channelscan/channelscanner_cli.cpp
  43. +1 −1 mythtv/libs/libmythtv/channelscan/iptvchannelfetcher.cpp
  44. +8 −8 mythtv/libs/libmythtv/channelutil.cpp
  45. +7 −7 mythtv/libs/libmythtv/datadirect.cpp
  46. +1 −1 mythtv/libs/libmythtv/dtvconfparser.cpp
  47. +2 −2 mythtv/libs/libmythtv/fifowriter.cpp
  48. +2 −2 mythtv/libs/libmythtv/filtermanager.cpp
  49. +4 −4 mythtv/libs/libmythtv/mhi.cpp
  50. +3 −3 mythtv/libs/libmythtv/mpeg/dvbdescriptors.h
  51. +1 −1 mythtv/libs/libmythtv/netstream.cpp
  52. +1 −1 mythtv/libs/libmythtv/previewgenerator.cpp
  53. +4 −4 mythtv/libs/libmythtv/recorders/NuppelVideoRecorder.cpp
  54. +1 −1 mythtv/libs/libmythtv/recorders/audioinput.cpp
  55. +1 −1 mythtv/libs/libmythtv/recorders/audioinputalsa.cpp
  56. +1 −1 mythtv/libs/libmythtv/recorders/audioinputoss.cpp
  57. +1 −1 mythtv/libs/libmythtv/recorders/cetonrtsp.cpp
  58. +2 −2 mythtv/libs/libmythtv/recorders/dvbcam.cpp
  59. +1 −1 mythtv/libs/libmythtv/recorders/dvbchannel.cpp
  60. +4 −4 mythtv/libs/libmythtv/recorders/dvbstreamhandler.cpp
  61. +1 −1 mythtv/libs/libmythtv/recorders/iptvstreamhandler.cpp
  62. +5 −5 mythtv/libs/libmythtv/recorders/mpegrecorder.cpp
  63. +1 −1 mythtv/libs/libmythtv/recorders/v4lchannel.cpp
  64. +1 −1 mythtv/libs/libmythtv/recorders/v4lrecorder.cpp
  65. +1 −1 mythtv/libs/libmythtv/streamingringbuffer.cpp
  66. +1 −1 mythtv/libs/libmythtv/util-xv.cpp
  67. +3 −3 mythtv/libs/libmythtv/videoout_xv.cpp
  68. +4 −4 mythtv/libs/libmythtv/videosource.cpp
  69. +1 −1 mythtv/libs/libmythui/mythmainwindow.cpp
  70. +1 −1 mythtv/libs/libmythui/mythrender_opengl1.cpp
  71. +1 −1 mythtv/libs/libmythui/mythrender_opengl2.cpp
  72. +1 −1 mythtv/libs/libmythui/mythuifilebrowser.cpp
  73. +1 −1 mythtv/libs/libmythui/mythuitype.cpp
  74. +1 −1 mythtv/libs/libmythui/mythxdisplay.cpp
  75. +1 −1 mythtv/libs/libmythupnp/mmulticastsocketdevice.cpp
  76. +1 −1 mythtv/libs/libmythupnp/serializers/xmlSerializer.cpp
  77. +1 −1 mythtv/libs/libmythupnp/servicehost.cpp
  78. +1 −1 mythtv/libs/libmythupnp/soapclient.cpp
  79. +1 −1 mythtv/programs/mythbackend/main_helpers.cpp
  80. +3 −3 mythtv/programs/mythbackend/mainserver.cpp
  81. +2 −2 mythtv/programs/mythbackend/services/content.cpp
  82. +3 −3 mythtv/programs/mythcommflag/ClassicCommDetector.cpp
  83. +1 −1 mythtv/programs/mythcommflag/ClassicLogoDetector.cpp
  84. +2 −2 mythtv/programs/mythcommflag/PrePostRollFlagger.cpp
  85. +2 −2 mythtv/programs/mythcommflag/TemplateFinder.cpp
  86. +3 −3 mythtv/programs/mythcommflag/main.cpp
  87. +1 −1 mythtv/programs/mythfrontend/mythcontrols.cpp
  88. +1 −1 mythtv/programs/mythfrontend/videofilter.cpp
  89. +1 −1 mythtv/programs/mythjobqueue/main.cpp
  90. +1 −1 mythtv/programs/mythmediaserver/main.cpp
  91. +1 −1 mythtv/programs/mythtv-setup/importicons.cpp
  92. +4 −4 mythtv/programs/mythtv-setup/main.cpp
@@ -66,7 +66,7 @@ void QObjectHelper::qvariant2qobject(const QVariantMap& variant, QObject* object
QVariantMap::const_iterator iter;
for (iter = variant.constBegin(); iter != variant.constEnd(); ++iter) {
int pIdx = metaobject->indexOfProperty( iter.key().toAscii() );
int pIdx = metaobject->indexOfProperty( iter.key().toLatin1() );
if ( pIdx < 0 ) {
continue;
@@ -117,7 +117,7 @@ int AudioOutputALSA::TryOpenDevice(int open_mode, int try_ac3)
if (try_ac3)
{
dev_ba = passthru_device.toAscii();
dev_ba = passthru_device.toLatin1();
VBAUDIO(QString("OpenDevice %1 for passthrough").arg(passthru_device));
err = snd_pcm_open(&pcm_handle, dev_ba.constData(),
SND_PCM_STREAM_PLAYBACK, open_mode);
@@ -137,7 +137,7 @@ int AudioOutputALSA::TryOpenDevice(int open_mode, int try_ac3)
{
// passthru open failed, retry default device
VBAUDIO(QString("OpenDevice %1").arg(main_device));
dev_ba = main_device.toAscii();
dev_ba = main_device.toLatin1();
err = snd_pcm_open(&pcm_handle, dev_ba.constData(),
SND_PCM_STREAM_PLAYBACK, open_mode);
m_lastdevice = main_device;
@@ -261,7 +261,7 @@ QByteArray *AudioOutputALSA::GetELD(int card, int device, int subdevice)
snd_ctl_elem_id_set_name(id, "ELD");
snd_ctl_elem_id_set_device(id, device);
if ((err = snd_hctl_open(&hctl,
QString("hw:%1").arg(card).toAscii().constData(),
QString("hw:%1").arg(card).toLatin1().constData(),
0)) < 0)
{
VBAUDIO(QString("Control %1 open error: %2")
@@ -911,7 +911,7 @@ bool AudioOutputALSA::OpenMixer(void)
return false;
}
QByteArray dev_ba = m_mixer.device.toAscii();
QByteArray dev_ba = m_mixer.device.toLatin1();
struct snd_mixer_selem_regopt regopts =
{1, SND_MIXER_SABSTRACT_NONE, dev_ba.constData(), NULL, NULL};
@@ -154,7 +154,7 @@ bool AudioOutputJACK::OpenDevice()
for (i = 0; i < channels; i++)
{
QString port_name = QString("out_%1").arg(i);
ports[i] = jack_port_register(client, port_name.toAscii().constData(),
ports[i] = jack_port_register(client, port_name.toLatin1().constData(),
JACK_DEFAULT_AUDIO_TYPE,
JackPortIsOutput, 0);
if (!ports[i])
@@ -559,7 +559,7 @@ jack_client_t* AudioOutputJACK::_jack_client_open(void)
(jack_options_t)(JackUseExactName | JackNoStartServer);
jack_status_t open_status;
client = jack_client_open(client_name.toAscii().constData(),
client = jack_client_open(client_name.toLatin1().constData(),
open_options, &open_status);
return client;
@@ -574,7 +574,7 @@ const char** AudioOutputJACK::_jack_get_ports(void)
// Have we been given a target port to connect to
if (!main_device.isEmpty())
{
port_name = main_device.toAscii().constData();
port_name = main_device.toLatin1().constData();
}
else
{
@@ -47,7 +47,7 @@ AudioOutputSettings* AudioOutputOSS::GetOutputSettings(bool /*digital*/)
{
AudioOutputSettings *settings = new AudioOutputSettings();
QByteArray device = main_device.toAscii();
QByteArray device = main_device.toLatin1();
audiofd = open(device.constData(), O_WRONLY | O_NONBLOCK);
AudioFormat fmt;
@@ -121,7 +121,7 @@ bool AudioOutputOSS::OpenDevice()
while (timer.elapsed() < 2000 && audiofd == -1)
{
QByteArray device = main_device.toAscii();
QByteArray device = main_device.toLatin1();
audiofd = open(device.constData(), O_WRONLY);
if (audiofd < 0 && errno != EAGAIN && errno != EINTR)
{
@@ -282,7 +282,7 @@ void AudioOutputOSS::VolumeInit()
if (device.toLower() == "software")
return;
QByteArray dev = device.toAscii();
QByteArray dev = device.toLatin1();
mixerfd = open(dev.constData(), O_RDONLY);
QString controlLabel = gCoreContext->GetSetting("MixerControl", "PCM");
@@ -470,7 +470,7 @@ char *AudioOutputPulseAudio::ChooseHost(void)
{
QString fn_log_tag = "ChooseHost, ";
char *pulse_host = NULL;
char *device = strdup(main_device.toAscii().constData());
char *device = strdup(main_device.toLatin1().constData());
const char *host;
for (host=device; host && *host != ':' && *host != 0; host++);
@@ -24,7 +24,7 @@ extern "C" {
SPDIFEncoder::SPDIFEncoder(QString muxer, int codec_id)
: m_complete(false), m_oc(NULL), m_stream(NULL), m_size(0)
{
QByteArray dev_ba = muxer.toAscii();
QByteArray dev_ba = muxer.toLatin1();
AVOutputFormat *fmt;
avcodeclock->lock();
@@ -418,11 +418,11 @@ void MonitorThreadDarwin::diskInsert(const char *devName,
// We store the volume name for user activities like ChooseAndEjectMedia().
media->setVolumeID(volName);
media->setDeviceModel(model.toAscii()); // Same for the Manufacturer and model
media->setDeviceModel(model.toLatin1()); // Same for the Manufacturer and model
// Mac OS X devices are pre-mounted here:
QString mnt = "/Volumes/"; mnt += volName;
media->setMountPath(mnt.toAscii());
media->setMountPath(mnt.toLatin1());
int attempts = 0;
QDir d(mnt);
@@ -496,7 +496,7 @@ void MonitorThreadDarwin::diskRename(const char *devName, const char *volName)
pDevice->setStatus(MEDIASTAT_NODISK);
pDevice->setVolumeID(volName);
pDevice->setMountPath((QString("/Volumes/") + volName).toAscii());
pDevice->setMountPath((QString("/Volumes/") + volName).toLatin1());
// Plugins can now use it again:
if (m_Monitor->m_SendEvent)
@@ -234,9 +234,9 @@ bool MediaMonitorUnix::CheckMountable(void)
MythMediaDevice* pDevice;
if (DeviceProperty(*it, "DeviceIsRemovable").toBool())
pDevice = MythCDROM::get(this, dev.toAscii(), false, m_AllowEject);
pDevice = MythCDROM::get(this, dev.toLatin1(), false, m_AllowEject);
else
pDevice = MythHDD::Get(this, dev.toAscii(), false, false);
pDevice = MythHDD::Get(this, dev.toLatin1(), false, false);
if (pDevice && !AddDevice(pDevice))
pDevice->deleteLater();
@@ -332,7 +332,7 @@ QString MediaMonitorUnix::GetDeviceFile(const QString &sysfs)
if (udev != NULL)
{
struct udev_device *device =
udev_device_new_from_syspath(udev, sysfs.toAscii().constData());
udev_device_new_from_syspath(udev, sysfs.toLatin1().constData());
if (device != NULL)
{
const char *name = udev_device_get_devnode(device);
@@ -533,7 +533,7 @@ static void LookupModel(MythMediaDevice* device)
LOG(VB_MEDIA, LOG_DEBUG, QString("LookupModel '%1' -> '%2'")
.arg(device->getRealDevice()).arg(desc) );
device->setDeviceModel(desc.toAscii().constData());
device->setDeviceModel(desc.toLatin1().constData());
}
/**
@@ -714,9 +714,9 @@ void MediaMonitorUnix::deviceAdded( QDBusObjectPath o)
MythMediaDevice* pDevice;
if (DeviceProperty(o, "DeviceIsRemovable").toBool())
pDevice = MythCDROM::get(this, dev.toAscii(), false, m_AllowEject);
pDevice = MythCDROM::get(this, dev.toLatin1(), false, m_AllowEject);
else
pDevice = MythHDD::Get(this, dev.toAscii(), false, false);
pDevice = MythHDD::Get(this, dev.toLatin1(), false, false);
if (pDevice && !AddDevice(pDevice))
pDevice->deleteLater();
@@ -804,13 +804,13 @@ bool MediaMonitorUnix::FindPartitions(const QString &dev, bool checkPartitions)
{
// found cdrom device
pDevice = MythCDROM::get(
this, device_file.toAscii().constData(), false, m_AllowEject);
this, device_file.toLatin1().constData(), false, m_AllowEject);
}
else
{
// found block or partition device
pDevice = MythHDD::Get(
this, device_file.toAscii().constData(), false, false);
this, device_file.toLatin1().constData(), false, false);
}
if (AddDevice(pDevice))
@@ -700,7 +700,7 @@ bool MythPopupBox::showOkPopup(
if (button_msg.isEmpty())
button_msg = QObject::tr("OK");
MythPopupBox *popup = new MythPopupBox(parent, title.toAscii().constData());
MythPopupBox *popup = new MythPopupBox(parent, title.toLatin1().constData());
popup->addLabel(message, MythPopupBox::Medium, true);
QAbstractButton *okButton = popup->addButton(button_msg, popup, SLOT(accept()));
@@ -716,7 +716,7 @@ bool MythPopupBox::showOkPopup(
bool MythPopupBox::showGetTextPopup(MythMainWindow *parent, QString title,
QString message, QString& text)
{
MythPopupBox *popup = new MythPopupBox(parent, title.toAscii().constData());
MythPopupBox *popup = new MythPopupBox(parent, title.toLatin1().constData());
popup->addLabel(message, Medium, true);
@@ -763,7 +763,7 @@ DialogCode MythPopupBox::ShowButtonPopup(
const QStringList &buttonmsgs,
DialogCode default_button)
{
MythPopupBox *popup = new MythPopupBox(parent, title.toAscii().constData());
MythPopupBox *popup = new MythPopupBox(parent, title.toLatin1().constData());
popup->addLabel(message, Medium, true);
popup->addLabel("");
@@ -545,7 +545,7 @@ QString MediaMonitor::GetMountPath(const QString& devPath)
// Create a fake media device just to lookup mount map:
else
{
pMedia = MythCDROM::get(NULL, devPath.toAscii(), true, false);
pMedia = MythCDROM::get(NULL, devPath.toLatin1(), true, false);
if (pMedia && pMedia->findMountPath())
mountPath = pMedia->getMountPath();
else
@@ -271,7 +271,7 @@ QDateTime RemoteGetPreviewIfModified(
size_t length = strlist[1].toULongLong();
quint16 checksum16 = strlist[2].toUInt();
QByteArray data = QByteArray::fromBase64(strlist[3].toAscii());
QByteArray data = QByteArray::fromBase64(strlist[3].toLatin1());
if ((size_t) data.size() < length)
{ // (note data.size() may be up to 3 bytes longer after decoding
LOG(VB_GENERAL, LOG_ERR, loc +
@@ -308,7 +308,7 @@ QWidget* LineEditSetting::configWidget(ConfigurationGroup *cg, QWidget* parent,
edit = new MythLineEdit(
settingValue, NULL,
QString(QString(widgetName) + "-edit").toAscii().constData());
QString(QString(widgetName) + "-edit").toLatin1().constData());
edit->setHelpText(getHelpText());
edit->setText( getValue() );
edit->setMinimumHeight(25);
@@ -408,7 +408,7 @@ QWidget* SliderSetting::configWidget(ConfigurationGroup *cg, QWidget* parent,
}
MythSlider *slider = new MythSlider(
NULL, QString(QString(widgetName) + "-slider").toAscii().constData());
NULL, QString(QString(widgetName) + "-slider").toLatin1().constData());
slider->setHelpText(getHelpText());
slider->setMinimum(min);
slider->setMaximum(max);
@@ -419,7 +419,7 @@ QWidget* SliderSetting::configWidget(ConfigurationGroup *cg, QWidget* parent,
QLCDNumber *lcd = new QLCDNumber();
lcd->setObjectName(QString(QString(widgetName) + "-lcd")
.toAscii().constData());
.toLatin1().constData());
lcd->setMode(QLCDNumber::Dec);
lcd->setSegmentStyle(QLCDNumber::Flat);
lcd->display(intValue());
@@ -484,7 +484,7 @@ QWidget* SpinBoxSetting::configWidget(ConfigurationGroup *cg, QWidget* parent,
this, SLOT(widgetDeleted(QObject*)));
QString sbname = QString(widgetName) + "MythSpinBox";
spinbox = new MythSpinBox(NULL, sbname.toAscii().constData(), sstep);
spinbox = new MythSpinBox(NULL, sbname.toLatin1().constData(), sstep);
spinbox->setHelpText(getHelpText());
spinbox->setMinimum(min);
spinbox->setMaximum(max);
@@ -28,7 +28,7 @@ class StorageGroupPopup
SGPopupResult StorageGroupPopup::showPopup(MythMainWindow *parent,
QString title, QString message, QString& text)
{
MythPopupBox *popup = new MythPopupBox(parent, title.toAscii().constData());
MythPopupBox *popup = new MythPopupBox(parent, title.toLatin1().constData());
popup->addLabel(message);
MythLineEdit *textEdit = new MythLineEdit(popup, "chooseEdit");
@@ -230,7 +230,7 @@ void FileSystemInfo::Consolidate(QList<FileSystemInfo> &disks,
void FileSystemInfo::PopulateDiskSpace(void)
{
int64_t total = -1, used = -1;
getDiskSpace(getPath().toAscii().constData(), total, used);
getDiskSpace(getPath().toLatin1().constData(), total, used);
setTotalSpace(total);
setUsedSpace(used);
}
@@ -64,7 +64,7 @@ vector<int> iso639_get_language_key_list(void)
QString iso639_str2_to_str3(const QString &str2)
{
int key2 = iso639_str2_to_key2(str2.toAscii().constData());
int key2 = iso639_str2_to_key2(str2.toLatin1().constData());
int key3 = 0;
if (_iso639_key2_to_key3.contains(key2))
key3 = _iso639_key2_to_key3[key2];
@@ -78,9 +78,9 @@ static inline int iso639_str3_to_key(const QString &iso639_2)
}
else
{
return ((iso639_2.at(0).toAscii()<<16) |
(iso639_2.at(1).toAscii()<<8) |
(iso639_2.at(2).toAscii()));
return ((iso639_2.at(0).toLatin1()<<16) |
(iso639_2.at(1).toLatin1()<<8) |
(iso639_2.at(2).toLatin1()));
}
}
@@ -97,7 +97,7 @@ static inline int iso639_str2_to_key2(const char *iso639_1)
static inline QString iso639_str_to_canonoical_str(const QString &str3)
{
int key = iso639_str3_to_key(str3.toAscii().constData());
int key = iso639_str3_to_key(str3.toLatin1().constData());
int can = iso639_key_to_canonical_key(key);
return iso639_key_to_str3(can);
}
@@ -503,7 +503,7 @@ MythMediaStatus MythCDROMLinux::checkMedia()
// Check for a DVD/BD disk by reading the UDF root dir.
// This allows DVD's to play immediately upon insertion without
// calling mount, which either needs pmount or changes to fstab.
udf_t *pUdf = udf_open(m_DevicePath.toAscii());
udf_t *pUdf = udf_open(m_DevicePath.toLatin1());
if (NULL != pUdf)
{
udf_dirent_t *pUdfRoot = udf_get_root(pUdf, true, 0);
@@ -1875,7 +1875,7 @@ QMap<QString,QString> MythCommandLineParser::GetSettingsOverride(void)
}
else
{
QByteArray tmp = filename.toAscii();
QByteArray tmp = filename.toLatin1();
cerr << "Failed to open the override settings file: '"
<< tmp.constData() << "'" << endl;
}
@@ -2613,7 +2613,7 @@ bool openPidfile(ofstream &pidfs, const QString &pidfile)
{
if (!pidfile.isEmpty())
{
pidfs.open(pidfile.toAscii().constData());
pidfs.open(pidfile.toLatin1().constData());
if (!pidfs)
{
cerr << "Could not open pid file: " << ENO_STR << endl;
@@ -1089,7 +1089,7 @@ void MythDownloadManager::downloadFinished(MythDownloadInfo *dlInfo)
QNetworkCacheMetaData::RawHeader newheader;
QDateTime now = MythDate::current();
newheader = QNetworkCacheMetaData::RawHeader("Date",
now.toString(dateFormat).toAscii());
now.toString(dateFormat).toLatin1());
headers.append(newheader);
urlData.setRawHeaders(headers);
m_infoLock->lock();
@@ -371,7 +371,7 @@ QString createTempFile(QString name_template, bool dir)
}
QString tmpFileName(tempfilename);
#else
QByteArray safe_name_template = name_template.toAscii();
QByteArray safe_name_template = name_template.toLatin1();
const char *tmp = safe_name_template.constData();
char *ctemplate = strdup(tmp);
@@ -423,7 +423,7 @@ QString createTempFile(QString name_template, bool dir)
*/
void makeFileAccessible(QString filename)
{
QByteArray fname = filename.toAscii();
QByteArray fname = filename.toLatin1();
chmod(fname.constData(), 0666);
}
@@ -936,8 +936,8 @@ void setHttpProxy(void)
url = "http://%1:%2";
url = url.arg(p.hostName()).arg(p.port());
setenv("HTTP_PROXY", url.toAscii(), 1);
setenv("http_proxy", url.toAscii(), 0);
setenv("HTTP_PROXY", url.toLatin1(), 1);
setenv("http_proxy", url.toLatin1(), 0);
return;
}
Oops, something went wrong.

0 comments on commit f894ecb

Please sign in to comment.