From: Robin Burchell <robin.burch...@collabora.co.uk>

Signed-off-by: Robin Burchell <virot...@viroteck.net>
---
 src/personcard.cpp |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/personcard.cpp b/src/personcard.cpp
index cbe3d14..7f4f9be 100644
--- a/src/personcard.cpp
+++ b/src/personcard.cpp
@@ -61,16 +61,16 @@ SeasidePersonCard::SeasidePersonCard(const QModelIndex& 
index, MWidget *parent):
         //If only 1 of our associated phone details is mobile,
         //then make SMS directly available, otherwise, if > 1,
         //then open up the "# to SMS" page
-        QList<const SeasideDetail *> *mobileDetails = new QList<const 
SeasideDetail *>;
+        QList<const SeasideDetail *> mobileDetails;
         foreach (const SeasideDetail& detail, pm->phones()) {
             if (detail.location() == Seaside::LocationMobile)
-                mobileDetails->append(&detail);
+                mobileDetails.append(&detail);
         }
-        if (mobileDetails->count() == 1) {
+        if (mobileDetails.count() == 1) {
             action = createAction(tr("SMS", "Action for SMS"), this);
-            m_actionToString[action] = mobileDetails->at(0)->text();
+            m_actionToString[action] = mobileDetails.at(0)->text();
             connect(action, SIGNAL(triggered()), this, SLOT(composeSMS()));
-        } else if (mobileDetails->count() > 1) {
+        } else if (mobileDetails.count() > 1) {
             action = new MAction(tr("SMS","Action for SMS"), this);
             action->setLocation(MAction::ObjectMenuLocation);
             addAction(action);
-- 
1.7.4.1

_______________________________________________
MeeGo-dev mailing list
MeeGo-dev@meego.com
http://lists.meego.com/listinfo/meego-dev
http://wiki.meego.com/Mailing_list_guidelines

Reply via email to