From 2494d3042eceed5a654e5330ed17baba0029ee89 Mon Sep 17 00:00:00 2001
From: Gareth Stockwell <ext-gareth.stockwell@nokia.com>
Date: Mon, 9 Nov 2009 08:40:21 +0000
Subject: Fixed compiler warning for RVCT 2.2

Reviewed-by: trustme
---
 .../mmf/mmfphonondebug/objectdump_symbian.cpp      | 47 +++++++++++-----------
 1 file changed, 24 insertions(+), 23 deletions(-)

diff --git a/src/3rdparty/phonon/mmf/mmfphonondebug/objectdump_symbian.cpp b/src/3rdparty/phonon/mmf/mmfphonondebug/objectdump_symbian.cpp
index f836109..d0818eb 100644
--- a/src/3rdparty/phonon/mmf/mmfphonondebug/objectdump_symbian.cpp
+++ b/src/3rdparty/phonon/mmf/mmfphonondebug/objectdump_symbian.cpp
@@ -99,38 +99,39 @@ QList<QByteArray> QAnnotatorWindow::annotation(const QObject& object)
     if (widget) {
 
         const CCoeControl* control = widget->effectiveWinId();
-        RDrawableWindow *window = 0;
 
-        if (control && (window = control->DrawableWindow())) {
-
-            QByteArray array;
-            QTextStream stream(&array);
+        if (control) {
+            RDrawableWindow *const window = control->DrawableWindow();
+            if(window) {
+                QByteArray array;
+                QTextStream stream(&array);
 
-            stream << "window: ";
+                stream << "window: ";
 
-            // Server-side address of CWsWindow object
-            // This is useful for correlation with the window tree dumped by the window
-            // server (see RWsSession::LogCommand).
-            // Cast to a void pointer so that log output is in hexadecimal format.
-            stream << "srv " << reinterpret_cast<const void*>(window->WsHandle()) << ' ';
+                // Server-side address of CWsWindow object
+                // This is useful for correlation with the window tree dumped by the window
+                // server (see RWsSession::LogCommand).
+                // Cast to a void pointer so that log output is in hexadecimal format.
+                stream << "srv " << reinterpret_cast<const void*>(window->WsHandle()) << ' ';
 
-            stream << "group " << window->WindowGroupId() << ' ';
+                stream << "group " << window->WindowGroupId() << ' ';
 
-            // Client-side handle to the parent window.
-            // Cast to a void pointer so that log output is in hexadecimal format.
-            stream << "parent " << reinterpret_cast<const void*>(window->Parent()) << ' ';
+                // Client-side handle to the parent window.
+                // Cast to a void pointer so that log output is in hexadecimal format.
+                stream << "parent " << reinterpret_cast<const void*>(window->Parent()) << ' ';
 
-            stream << window->Position().iX << ',' << window->Position().iY << ' ';
-            stream << '(' << window->AbsPosition().iX << ',' << window->AbsPosition().iY << ") ";
-            stream << window->Size().iWidth << 'x' << window->Size().iHeight << ' ';
+                stream << window->Position().iX << ',' << window->Position().iY << ' ';
+                stream << '(' << window->AbsPosition().iX << ',' << window->AbsPosition().iY << ") ";
+                stream << window->Size().iWidth << 'x' << window->Size().iHeight << ' ';
 
-            const TDisplayMode displayMode = window->DisplayMode();
-            stream << "mode " << displayMode << ' ';
+                const TDisplayMode displayMode = window->DisplayMode();
+                stream << "mode " << displayMode << ' ';
 
-            stream << "ord " << window->OrdinalPosition();
+                stream << "ord " << window->OrdinalPosition();
 
-            stream.flush();
-            result.append(array);
+                stream.flush();
+                result.append(array);
+            }
         }
     }
 
-- 
cgit v0.12