src/hbcore/image/hbiconanimationparser.cpp
changeset 5 627c4a0fd0e7
parent 2 06ff229162e9
--- a/src/hbcore/image/hbiconanimationparser.cpp	Thu May 27 13:10:59 2010 +0300
+++ b/src/hbcore/image/hbiconanimationparser.cpp	Fri Jun 11 13:58:22 2010 +0300
@@ -87,7 +87,7 @@
 #endif
         return false;
     }
-    
+
     setDevice(&file);
     bool ret = doParseFile(fileName, animations);
     file.close();
@@ -107,7 +107,7 @@
             if (name() == "animations") {
                 ret = readAnimations(fileName, animations);
             }
-        }        
+        }
     }
 
 #ifdef HB_ICON_TRACES
@@ -165,7 +165,7 @@
 QString HbIconAnimationParser::readIconData(HbIconAnimationData &data)
 {
     Q_ASSERT(isStartElement() && name() == "icon");
-    
+
     QString iconName;
     int defaultDuration = 0;
     QStack< QPair<int, int> > repStk;
@@ -176,7 +176,7 @@
     QList<HbIconAnimationDefinition::AnimationFrame> frames = data.def.frameList();
 
     // Read icon attributes
-    foreach (const QXmlStreamAttribute &attr, attrs) {
+    foreach(const QXmlStreamAttribute & attr, attrs) {
         // "name" = ...
         if (attr.name().toString() == "name") {
             iconName = attr.value().toString();
@@ -226,7 +226,7 @@
 
                 QXmlStreamAttributes attrs = attributes();
                 // Read attributes
-                foreach (const QXmlStreamAttribute &attr, attrs) {
+                foreach(const QXmlStreamAttribute & attr, attrs) {
                     // duration attribute
                     if (attr.name().toString() == "duration") {
                         frame.duration = attr.value().toString().toInt();
@@ -246,7 +246,7 @@
                 // </loop>
                 int repeatCount = 0;
                 QXmlStreamAttributes attrs = attributes();
-                foreach (const QXmlStreamAttribute &attr, attrs) {
+                foreach(const QXmlStreamAttribute & attr, attrs) {
                     if (attr.name().toString() == "count") {
                         repeatCount = attr.value().toString().toInt();
                     }
@@ -255,7 +255,7 @@
                 if (repeatCount > 0) {
                     // Target frame index for this loop's last frame will be the index of
                     // the frame that comes next.
-                    repStk.push(QPair<int, int>(frames.count(), repeatCount)); 
+                    repStk.push(QPair<int, int>(frames.count(), repeatCount));
                 }
 
             } else {