OSDN Git Service

debugger: minor whitespace
authorhjk <qtc-committer@nokia.com>
Thu, 1 Oct 2009 07:01:00 +0000 (09:01 +0200)
committerhjk <qtc-committer@nokia.com>
Thu, 1 Oct 2009 07:01:24 +0000 (09:01 +0200)
src/shared/trk/trkdevice.cpp

index 25f35f3..a227e0c 100644 (file)
@@ -753,12 +753,12 @@ int UnixReaderThread::tryRead()
     if (FD_ISSET(m_terminatePipeFileDescriptors[0], &tempReadSet)
         || FD_ISSET(m_terminatePipeFileDescriptors[0], &tempExceptionSet))
         return 1;
+
     // determine number of pending bytes and read
     int numBytes;
     if (ioctl(fileDescriptor, FIONREAD, &numBytes) < 0) {
         emit error(msgUnixCallFailedErrno("ioctl", errno));
         return -1;
-
     }
     m_context->mutex.lock();
     const QByteArray data = m_context->file.read(numBytes);
@@ -770,7 +770,8 @@ int UnixReaderThread::tryRead()
 void UnixReaderThread::run()
 {
     // Read loop
-    while ( tryRead() == 0) ;
+    while (tryRead() == 0)
+        ;
 }
 
 void UnixReaderThread::terminate()