>From 0f5cd0f03da26fca4a9b739c10106be0be324888 Mon Sep 17 00:00:00 2001
From: Christophe Dumez <christophe.dumez@intel.com>
Date: Sun, 15 May 2011 12:29:45 +0300
Subject: [PATCH 6/7] Versit Plugin: Code clean up

Use QVersitProperty::value() instead of
QVersitProperty::variantValue().toString()
---
 versitplugin/edscontacthandler.cpp |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/versitplugin/edscontacthandler.cpp b/versitplugin/edscontacthandler.cpp
index a7f4a07..219fcd7 100644
--- a/versitplugin/edscontacthandler.cpp
+++ b/versitplugin/edscontacthandler.cpp
@@ -143,7 +143,7 @@ void EdsContactHandler::propertyProcessed(const QtMobility::QVersitDocument &doc
       QCM5_DEBUG << "Detected TEL;TYPE=X-EVOLUTION-ASSISTANT property, fix subtype -> Assistant";
       updatedDetails->clear();
       QContactPhoneNumber phone;
-      phone.setNumber(property.variantValue().toString());
+      phone.setNumber(property.value());
       phone.setSubTypes(QContactPhoneNumber::SubTypeAssistant);
       *updatedDetails << phone;
     }
@@ -186,7 +186,7 @@ void EdsContactHandler::propertyProcessed(const QtMobility::QVersitDocument &doc
         break;
       }
     }
-    org.setAssistantName(property.variantValue().toString());
+    org.setAssistantName(property.value());
     *updatedDetails << org;
     return;
   }
@@ -194,7 +194,7 @@ void EdsContactHandler::propertyProcessed(const QtMobility::QVersitDocument &doc
     QCM5_DEBUG << "X-EVOLUTION-SPOUSE property detected, mapping to QContactFamily::FieldSpouse";
     *alreadyProcessed = true;
     QContactFamily family = contact.detail<QContactFamily>();
-    family.setSpouse(property.variantValue().toString());
+    family.setSpouse(property.value());
     *updatedDetails << family;
     return;
   }
@@ -202,7 +202,7 @@ void EdsContactHandler::propertyProcessed(const QtMobility::QVersitDocument &doc
     QCM5_DEBUG << "X-EDS-QTCONTACTS-CHILDREN property detected, mapping to QContactFamily::FieldChildren";
     *alreadyProcessed = true;
     QContactFamily family = contact.detail<QContactFamily>();
-    family.setChildren(stringToList(property.variantValue().toString()));
+    family.setChildren(stringToList(property.value()));
     *updatedDetails << family;
     return;
   }
@@ -220,7 +220,7 @@ void EdsContactHandler::propertyProcessed(const QtMobility::QVersitDocument &doc
     QCM5_DEBUG << "X-EVOLUTION-BLOG-URL property detected, mapping to QContactUrl::SubTypeBlog";
     QContactUrl url;
     url.setSubType(QContactUrl::SubTypeBlog);
-    url.setUrl(property.variantValue().toString());
+    url.setUrl(property.value());
     *updatedDetails << url;
     return;
   }
-- 
1.7.4.4

