Make while loop a compound statement to fix code analysis warning. 61/18161/2
authorFrancisco Santos <f1.santos@samsung.com>
Mon, 17 Mar 2014 14:58:52 +0000 (14:58 +0000)
committerFrancisco Santos <f1.santos@samsung.com>
Tue, 18 Mar 2014 16:45:47 +0000 (16:45 +0000)
Change-Id: I9aab6460d5428ad23fdc933f4600d083c5dd3efb
Signed-off-by: Francisco Santos <f1.santos@samsung.com>
dali/internal/render/shaders/program.cpp

index a5633f6..061c06e 100644 (file)
@@ -43,7 +43,10 @@ void LogWithLineNumbers( const char * source )
       break;
     }
     // seek the next end of line or end of text
-    while( *ptr!='\n' && *ptr != '\0' ) ++ptr;
+    while( *ptr!='\n' && *ptr != '\0' )
+    {
+      ++ptr;
+    }
 
     std::string line( prev, ptr-prev );
     Dali::Integration::Log::LogMessage(Dali::Integration::Log::DebugError, "%4d %s\n", lineNumber, line.c_str());