summaryrefslogtreecommitdiffstats
path: root/korganizer/plugins/hebrew/hebrew.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'korganizer/plugins/hebrew/hebrew.cpp')
-rw-r--r--korganizer/plugins/hebrew/hebrew.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/korganizer/plugins/hebrew/hebrew.cpp b/korganizer/plugins/hebrew/hebrew.cpp
index 9fb0f2fbf..8a9f37bd4 100644
--- a/korganizer/plugins/hebrew/hebrew.cpp
+++ b/korganizer/plugins/hebrew/hebrew.cpp
@@ -55,7 +55,7 @@ TQString Hebrew::shortText(const TQDate & date)
Holiday::ParshaP = config.readBoolEntry("Parsha", true);
Holiday::CholP = config.readBoolEntry("Chol_HaMoed", true);
Holiday::OmerP = config.readBoolEntry("Omer", true);
- TQString *label_text = new TQString();
+ TQString label_text;
int day = date.day();
int month = date.month();
@@ -81,7 +81,7 @@ TQString Hebrew::shortText(const TQDate & date)
hebrew_day_number, hebrew_year);
KCalendarSystem *cal = KCalendarSystemFactory::create("hebrew");
- *label_text = TQString("%1 %2").arg(cal->dayString(date, false))
+ label_text = TQString("%1 %2").arg(cal->dayString(date, false))
.arg(cal->monthName(date));
if (holidays.count())
@@ -90,11 +90,11 @@ TQString Hebrew::shortText(const TQDate & date)
for (int h = 0; h <= count; ++h)
{
- *label_text += "\n" + holidays[h];
+ label_text += "\n" + holidays[h];
}
}
- return *label_text;
+ return label_text;
}
TQString Hebrew::info()