[Box Backup-commit] COMMIT r2439 - box/trunk/lib/common
boxbackup-dev@boxbackup.org
boxbackup-dev@boxbackup.org
Mon, 5 Jan 2009 00:48:34 +0000 (GMT)
Author: chris
Date: 2009-01-05 00:48:33 +0000 (Mon, 05 Jan 2009)
New Revision: 2439
Modified:
box/trunk/lib/common/IOStream.cpp
box/trunk/lib/common/IOStream.h
Log:
Remove definitions of unwanted copy constructor and assignment operator,
to avoid accidentally calling them.
Modified: box/trunk/lib/common/IOStream.cpp
===================================================================
--- box/trunk/lib/common/IOStream.cpp 2009-01-05 00:48:01 UTC (rev 2438)
+++ box/trunk/lib/common/IOStream.cpp 2009-01-05 00:48:33 UTC (rev 2439)
@@ -29,19 +29,6 @@
// --------------------------------------------------------------------------
//
// Function
-// Name: IOStream::IOStream(const IOStream &)
-// Purpose: Copy constructor (exceptions)
-// Created: 2003/07/31
-//
-// --------------------------------------------------------------------------
-IOStream::IOStream(const IOStream &rToCopy)
-{
- THROW_EXCEPTION(CommonException, NotSupported)
-}
-
-// --------------------------------------------------------------------------
-//
-// Function
// Name: IOStream::~IOStream()
// Purpose: Destructor
// Created: 2003/07/31
Modified: box/trunk/lib/common/IOStream.h
===================================================================
--- box/trunk/lib/common/IOStream.h 2009-01-05 00:48:01 UTC (rev 2438)
+++ box/trunk/lib/common/IOStream.h 2009-01-05 00:48:33 UTC (rev 2439)
@@ -22,9 +22,13 @@
{
public:
IOStream();
- IOStream(const IOStream &rToCopy);
virtual ~IOStream();
-
+
+private:
+ IOStream(const IOStream &rToCopy); /* forbidden */
+ IOStream& operator=(const IOStream &rToCopy); /* forbidden */
+
+public:
enum
{
TimeOutInfinite = -1,