[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdewebdev/quanta/components/debugger/dbgp
From:       Linus McCabe <Linus () mccabe ! nu>
Date:       2005-07-22 18:34:14
Message-ID: 1122057254.989647.26268.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 437690 by linusmc:

Changed longs and ints to size_t for compatibility


 M  +4 -4      qbytearrayfifo.cpp  
 M  +3 -3      qbytearrayfifo.h  
 M  +1 -0      quantadebuggerdbgp.cpp  


--- trunk/KDE/kdewebdev/quanta/components/debugger/dbgp/qbytearrayfifo.cpp #437689:437690
@@ -31,11 +31,11 @@
 {
   // See if there's a null teminator somewhere
   QString str(m_array);
-  int size = str.length() + 1;
+  size_t size = str.length() + 1;
 
   // Decrease size and move bytes to the beginning of the array
   m_size -= size;
-  for(int cnt = 0; cnt < m_size; cnt++)
+  for(size_t cnt = 0; cnt < m_size; cnt++)
     m_array[cnt] = m_array[cnt + size];
 
   // Resize array, needed for find() to work
@@ -44,14 +44,14 @@
   return str;
 }
 
-bool QByteArrayFifo::append(const char * chars, int size )
+bool QByteArrayFifo::append(const char * chars, size_t size )
 {
   // Resize the array, fail if not possible
   if(!m_array.resize(m_size + size ))
     return false;
 
   // Copy the elements
-  for(int cnt = 0; cnt < size; cnt++)
+  for(size_t cnt = 0; cnt < size; cnt++)
     m_array[cnt + m_size] = chars[cnt];
 
   // Increase size var
--- trunk/KDE/kdewebdev/quanta/components/debugger/dbgp/qbytearrayfifo.h #437689:437690
@@ -28,15 +28,15 @@
 
   public:
     QByteArrayFifo();
-    bool append(const char * chars, int size);
+    bool append(const char * chars, size_t size);
     QString retrieve();
     QString base64Encoded();
     long find(char character);
-    unsigned long length() { return m_size; }
+    size_t length() { return m_size; }
 
   private:
     QByteArray m_array;
-    long m_size;
+    size_t m_size;
 
 };
 
--- trunk/KDE/kdewebdev/quanta/components/debugger/dbgp/quantadebuggerdbgp.cpp #437689:437690
@@ -661,6 +661,7 @@
     {
       m_defaultExecutionState = Running;
       el.appendChild(node.ownerDocument().createTextNode("run"));
+
     }
 
     el = node.namedItem("errormask").toElement();
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic