From 359faf6c427f3ced6ec938e8b029b5f614eed4eb Mon Sep 17 00:00:00 2001 From: Sascha Volkenandt Date: Fri, 19 Jan 2007 21:33:23 +0000 Subject: - converted all tChannelID::ToString and *::FromString calls to the stream operators when streams are involved --- pages/edit_timer.ecpp | 2 +- pages/pageelems.ecpp | 2 +- pages/switch_channel.ecpp | 2 +- pages/whats_on.ecpp | 2 +- timers.cpp | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pages/edit_timer.ecpp b/pages/edit_timer.ecpp index cee1ddd..90e19e1 100644 --- a/pages/edit_timer.ecpp +++ b/pages/edit_timer.ecpp @@ -132,7 +132,7 @@ cTimer* timer; <$ tr("Channel") $>: -<& channels_widget name=("channel") channelid=(true) selected=(*channel.ToString()) &> +<& channels_widget name=("channel") channelid=(true) selected=(channel) &> diff --git a/pages/pageelems.ecpp b/pages/pageelems.ecpp index 9adb045..932184b 100644 --- a/pages/pageelems.ecpp +++ b/pages/pageelems.ecpp @@ -45,7 +45,7 @@ component; tChannelID channelid; tEventID eventid; - /> + /> <%def ajax_js> diff --git a/pages/switch_channel.ecpp b/pages/switch_channel.ecpp index 3297793..91f4f30 100644 --- a/pages/switch_channel.ecpp +++ b/pages/switch_channel.ecpp @@ -19,7 +19,7 @@ using namespace vdrlive; -<$ *param.ToString() $> +<$ param $> <$ task.Result() $> <$ task.Error() $> diff --git a/pages/whats_on.ecpp b/pages/whats_on.ecpp index be36f96..b9062e0 100644 --- a/pages/whats_on.ecpp +++ b/pages/whats_on.ecpp @@ -72,7 +72,7 @@ if (type == "now") {
<& pageelems.event_timer channelid=(channel_id) eventid=(event) &> - <& pageelems.ajax_action_href action="switch_channel" param=(*channel_id.ToString()) image="zap.png" alt="" &> + <& pageelems.ajax_action_href action="switch_channel" param=(channel_id) image="zap.png" alt="" &>
<$ start $> - <$ end $>
diff --git a/timers.cpp b/timers.cpp index 9f0c8fb..68bb9b7 100644 --- a/timers.cpp +++ b/timers.cpp @@ -24,7 +24,7 @@ SortedTimers::SortedTimers(): string SortedTimers::GetTimerId( cTimer const& timer ) { ostringstream builder; - builder << *timer.Channel()->GetChannelID().ToString() << ":" << timer.WeekDays() << ":" + builder << timer.Channel()->GetChannelID() << ":" << timer.WeekDays() << ":" << timer.Day() << ":" << timer.Start() << ":" << timer.Stop(); return builder.str(); } @@ -80,7 +80,7 @@ void TimerManager::UpdateTimer( cTimer* timer, int flags, tChannelID& channel, s int start, int stop, int priority, int lifetime, string const& title, string const& aux ) { ostringstream builder; - builder << flags << ":" << *channel.ToString() << ":" << ( weekdays != "-------" ? weekdays : "" ) + builder << flags << ":" << channel << ":" << ( weekdays != "-------" ? weekdays : "" ) << ( weekdays == "-------" || day.empty() ? "" : "@" ) << day << ":" << start << ":" << stop << ":" << priority << ":" << lifetime << ":" << title << ":" << aux; dsyslog("%s", builder.str().c_str()); -- cgit v1.2.3