[Box Backup-commit] COMMIT r2433 - box/trunk/lib/common

boxbackup-dev@boxbackup.org boxbackup-dev@boxbackup.org
Sun, 4 Jan 2009 13:44:15 +0000 (GMT)


Author: chris
Date: 2009-01-04 13:44:15 +0000 (Sun, 04 Jan 2009)
New Revision: 2433

Modified:
   box/trunk/lib/common/IOStream.cpp
   box/trunk/lib/common/IOStream.h
Log:
Move IOStream::Write(char *) out of line for debugging.


Modified: box/trunk/lib/common/IOStream.cpp
===================================================================
--- box/trunk/lib/common/IOStream.cpp	2009-01-04 13:43:54 UTC (rev 2432)
+++ box/trunk/lib/common/IOStream.cpp	2009-01-04 13:44:15 UTC (rev 2433)
@@ -258,4 +258,7 @@
 	}
 }
 
-
+void IOStream::Write(const char *pBuffer)
+{
+	Write(pBuffer, strlen(pBuffer));
+}

Modified: box/trunk/lib/common/IOStream.h
===================================================================
--- box/trunk/lib/common/IOStream.h	2009-01-04 13:43:54 UTC (rev 2432)
+++ box/trunk/lib/common/IOStream.h	2009-01-04 13:44:15 UTC (rev 2433)
@@ -44,10 +44,7 @@
 	virtual int Read(void *pBuffer, int NBytes, int Timeout = IOStream::TimeOutInfinite) = 0;
 	virtual pos_type BytesLeftToRead();	// may return IOStream::SizeOfStreamUnknown (and will for most stream types)
 	virtual void Write(const void *pBuffer, int NBytes) = 0;
-	virtual void Write(const char *pBuffer)
-	{
-		Write(pBuffer, strlen(pBuffer));
-	}
+	virtual void Write(const char *pBuffer);
 	virtual void WriteAllBuffered();
 	virtual pos_type GetPosition() const;
 	virtual void Seek(pos_type Offset, int SeekType);