-rw-r--r-- | libopie2/opiepim/core/opimrecurrence.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libopie2/opiepim/core/opimrecurrence.cpp b/libopie2/opiepim/core/opimrecurrence.cpp index 98bd647..4b1d886 100644 --- a/libopie2/opiepim/core/opimrecurrence.cpp +++ b/libopie2/opiepim/core/opimrecurrence.cpp @@ -50,49 +50,49 @@ struct OPimRecurrence::Data : public QShared { create = QDateTime::currentDateTime(); hasEnd = FALSE; end = QDate::currentDate(); } char days; // Q_UINT8 for 8 seven days;) OPimRecurrence::RepeatType type; int freq; int pos; bool hasEnd : 1; QDate end; QDateTime create; int rep; QString app; ExceptionList list; QDate start; }; OPimRecurrence::OPimRecurrence() { data = new Data; } OPimRecurrence::OPimRecurrence( const QMap<int, QString>& map ) { - OPimRecurrence(); + data = new Data; fromMap( map ); } OPimRecurrence::OPimRecurrence( const OPimRecurrence& rec) : data( rec.data ) { data->ref(); } OPimRecurrence::~OPimRecurrence() { if ( data->deref() ) { delete data; data = 0l; } } void OPimRecurrence::deref() { if ( data->deref() ) { delete data; data = 0l; } |