src/hbcore/gui/hbsplash.cpp
changeset 5 627c4a0fd0e7
parent 3 11d3954df52a
child 21 4633027730f5
child 34 ed14f46c0e55
--- a/src/hbcore/gui/hbsplash.cpp	Thu May 27 13:10:59 2010 +0300
+++ b/src/hbcore/gui/hbsplash.cpp	Fri Jun 11 13:58:22 2010 +0300
@@ -40,7 +40,7 @@
 
 /*!
   \class HbSplash
-  
+
   \brief Class with utility functions for accessing splash screens.
 
   \internal
@@ -64,8 +64,7 @@
     return QString("prt");
 }
 
-struct Params
-{
+struct Params {
     int *w;
     int *h;
     int *bpl;
@@ -113,7 +112,7 @@
     w = *headerPtr++;
     h = *headerPtr++;
     bpl = *headerPtr++;
-    fmt = (QImage::Format) *headerPtr++;
+    fmt = (QImage::Format) * headerPtr++;
     params.extra = *headerPtr;
     if (fmt != QImage::Format_ARGB32_Premultiplied) {
         qWarning("[hbsplash] Image format for %s is not ARGB32_PRE (is %d instead)",
@@ -257,9 +256,9 @@
 }
 
 bool HbSplashSrvClient::getSplashFileHandle(RFile &f,
-                                            const QString &ori,
-                                            const QString &appId,
-                                            const QString &screenId)
+        const QString &ori,
+        const QString &appId,
+        const QString &screenId)
 {
     TPtrC oriDes(static_cast<const TUint16 *>(ori.utf16()), ori.length());
     TPtrC appIdDes(static_cast<const TUint16 *>(appId.utf16()), appId.length());
@@ -272,9 +271,9 @@
 }
 
 uchar *HbSplashSrvClient::getSplashFromBitmap(const QString &ori,
-                                              const QString &appId,
-                                              const QString &screenId,
-                                              Params &params)
+        const QString &appId,
+        const QString &screenId,
+        Params &params)
 {
     TPtrC oriDes(static_cast<const TUint16 *>(ori.utf16()), ori.length());
     TPtrC appIdDes(static_cast<const TUint16 *>(appId.utf16()), appId.length());
@@ -334,6 +333,7 @@
     if (appIdStr.isEmpty()) {
         RProcess process;
         appIdStr = QString::number(process.SecureId().iId, 16);
+        process.Close();
     }
 
     uchar *data = 0;