From 1537ccb435ca725c793db6e94e0b9e83484b57e7 Mon Sep 17 00:00:00 2001 From: zecke Date: Sun, 13 Apr 2003 16:55:34 +0000 Subject: OEvent/OTodo compare by address and not by value.. ODatebookAccess: clear does change it too --- (limited to 'libopie2/opiepim/oevent.cpp') diff --git a/libopie2/opiepim/oevent.cpp b/libopie2/opiepim/oevent.cpp index c3eeee2..56ea10d 100644 --- a/libopie2/opiepim/oevent.cpp +++ b/libopie2/opiepim/oevent.cpp @@ -82,7 +82,7 @@ OEvent::~OEvent() { } } OEvent& OEvent::operator=( const OEvent& ev) { - if ( *this == ev ) return *this; + if ( this == &ev ) return *this; OPimRecord::operator=( ev ); ev.data->ref(); -- cgit v0.9.0.2