summaryrefslogtreecommitdiff
path: root/recmenus.c
diff options
context:
space:
mode:
Diffstat (limited to 'recmenus.c')
-rw-r--r--recmenus.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/recmenus.c b/recmenus.c
index d154054..02e1bc7 100644
--- a/recmenus.c
+++ b/recmenus.c
@@ -341,17 +341,17 @@ const cTimer *cRecMenuEditTimer::GetOriginalTimer(void) {
return originalTimer;
}
-cTimer cRecMenuEditTimer::GetTimer(void) {
- cTimer t;
+cTimer *cRecMenuEditTimer::GetTimer(void) {
+ cTimer *t = (cTimer *)originalTimer;
if (timerActive)
- t.SetFlags(tfActive);
- else
- t.SetFlags(tfNone);
- t.SetDay(day);
- t.SetStart(start);
- t.SetStop(stop);
- t.SetPriority(prio);
- t.SetLifetime(lifetime);
+ t->SetFlags(tfActive);
+ else
+ t->ClrFlags(tfActive);
+ t->SetDay(day);
+ t->SetStart(start);
+ t->SetStop(stop);
+ t->SetPriority(prio);
+ t->SetLifetime(lifetime);
string newFolder(folder);
string newFile = originalTimer->File();
size_t found = newFile.find_last_of('~');
@@ -366,7 +366,7 @@ cTimer cRecMenuEditTimer::GetTimer(void) {
newFile = *cString::sprintf("%s~%s", newFolder.c_str(), newFile.c_str());
}
std::replace(newFile.begin(), newFile.end(), '/', '~');
- t.SetFile(newFile.c_str());
+ t->SetFile(newFile.c_str());
return t;
}