diff --git a/wxPython/src/calendar.i b/wxPython/src/calendar.i index d513513e44..df3df17bc9 100644 --- a/wxPython/src/calendar.i +++ b/wxPython/src/calendar.i @@ -108,7 +108,7 @@ class wxCalendarEvent : public wxCommandEvent public: wxCalendarEvent(wxCalendarCtrl *cal, wxEventType type); - const wxDateTime& GetDate() const; + const wxDateTime GetDate() const; void SetDate(const wxDateTime &date); void SetWeekDay(const wxDateTime::WeekDay wd); wxDateTime::WeekDay GetWeekDay() const;