convert most char[...] configuration values to std::string

Signed-off-by: Jacek Jendrzej <crashdvb@googlemail.com>


Origin commit data
------------------
Branch: ni/coolstream
Commit: cbc9299df8
Author: martii <m4rtii@gmx.de>
Date: 2013-06-11 (Tue, 11 Jun 2013)



------------------
This commit was generated by Migit
This commit is contained in:
martii
2013-06-11 13:32:19 +02:00
committed by Jacek Jendrzej
parent e0df013c9c
commit 7ebfe9959d
40 changed files with 483 additions and 470 deletions

View File

@@ -450,11 +450,11 @@ int CNeutrinoEventList::exec(const t_channel_id channel_id, const std::string& c
showFunctionBar(true, evtlist[selected].channelID);
continue;
}
char *recDir = g_settings.network_nfs_recordingdir;
std::string recDir = g_settings.network_nfs_recordingdir;
if (g_settings.recording_choose_direct_rec_dir)
{
int id = -1;
CMountChooser recDirs(LOCALE_TIMERLIST_RECORDING_DIR,NEUTRINO_ICON_SETTINGS,&id,NULL,g_settings.network_nfs_recordingdir);
CMountChooser recDirs(LOCALE_TIMERLIST_RECORDING_DIR,NEUTRINO_ICON_SETTINGS,&id,NULL,g_settings.network_nfs_recordingdir.c_str());
if (recDirs.hasItem())
{
hide();
@@ -468,11 +468,11 @@ int CNeutrinoEventList::exec(const t_channel_id channel_id, const std::string& c
}
if (id != -1)
recDir = g_settings.network_nfs_local_dir[id];
recDir = g_settings.network_nfs[id].local_dir;
else
recDir = NULL;
recDir = "";
}
if (recDir != NULL) //add/remove recording timer events and check/warn for conflicts
if (!recDir.empty()) //add/remove recording timer events and check/warn for conflicts
{
if (g_Timerd->addRecordTimerEvent(evtlist[selected].channelID ,
evtlist[selected].startTime,