Browse Source

Adapted code convention.

damu 9 years ago
parent
commit
1c80774106
1 changed files with 5 additions and 5 deletions
  1. 5 5
      Source/Urho3D/Resource/Image.cpp

+ 5 - 5
Source/Urho3D/Resource/Image.cpp

@@ -1114,12 +1114,12 @@ void Image::ClearInt(unsigned uintColor)
         return;
     }
 
-    if(components_==4)
+    if (components_ == 4)
     {
-        uint32_t color=uintColor;
-        uint32_t* data=(uint32_t*)GetData();
-        uint32_t* data_end=(uint32_t*)(GetData()+width_ * height_ * depth_ * components_);
-        for (; data < data_end; data++)
+        uint32_t color = uintColor;
+        uint32_t* data = (uint32_t*)GetData();
+        uint32_t* data_end = (uint32_t*)(GetData() + width_ * height_ * depth_ * components_);
+        for (; data < data_end; ++data)
             *data = color;
     }
     else