[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepim/kresources
From: Ingo Klöcker <kloecker () kde ! org>
Date: 2009-04-05 14:29:16
Message-ID: 1238941756.678506.28907.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 949602 by kloecker:
Use the new ComparisonVisitor for comparing two incidences instead of the non-polymorphic operator==().
M +3 -1 kolab/kcal/resourcekolab.cpp
M +3 -1 scalix/kcal/resourcescalix.cpp
--- trunk/KDE/kdepim/kresources/kolab/kcal/resourcekolab.cpp #949601:949602
@@ -38,6 +38,7 @@
#include "journal.h"
#include <kapplication.h>
+#include <kcal/comparisonvisitor.h>
#include <kcal/icalformat.h>
#include <libkdepim/kincidencechooser.h>
#include <kabc/locknull.h>
@@ -389,7 +390,8 @@
Incidence* addedIncidence = 0;
Incidence* result = 0;
if ( local ) {
- if (*local == *inc) {
+ ComparisonVisitor visitor;
+ if ( visitor.compare( local, inc ) ) {
// real duplicate, remove the second one
result = local;
} else {
--- trunk/KDE/kdepim/kresources/scalix/kcal/resourcescalix.cpp #949601:949602
@@ -35,6 +35,7 @@
#include "resourcescalix.h"
#include <kapplication.h>
+#include <kcal/comparisonvisitor.h>
#include <kcal/icalformat.h>
#include <libkdepim/kincidencechooser.h>
#include <kabc/locknull.h>
@@ -380,7 +381,8 @@
Incidence* addedIncidence = 0;
Incidence* result = 0;
if ( local ) {
- if (*local == *inc) {
+ ComparisonVisitor visitor;
+ if ( visitor.compare( local, inc ) ) {
// real duplicate, remove the second one
result = local;
} else {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic