From: Christian P. <cp...@us...> - 2005-01-06 16:40:27
|
Update of /cvsroot/pclasses/pclasses2/src/IO In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11059/src/IO Modified Files: IODevice.cpp IOFilter.cpp Log Message: Added bool parameter to IOFilter::sync() Index: IODevice.cpp =================================================================== RCS file: /cvsroot/pclasses/pclasses2/src/IO/IODevice.cpp,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- IODevice.cpp 3 Jan 2005 13:50:44 -0000 1.4 +++ IODevice.cpp 6 Jan 2005 16:40:14 -0000 1.5 @@ -53,7 +53,7 @@ if(valid()) { if(_filter) - _filter->sync(); + _filter->sync(true); _close(); } @@ -87,7 +87,7 @@ void IODevice::sync() const throw(IOError) { if(_filter) - _filter->sync(); + _filter->sync(false); _sync(); } Index: IOFilter.cpp =================================================================== RCS file: /cvsroot/pclasses/pclasses2/src/IO/IOFilter.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- IOFilter.cpp 3 Jan 2005 13:50:44 -0000 1.1 +++ IOFilter.cpp 6 Jan 2005 16:40:14 -0000 1.2 @@ -32,18 +32,18 @@ IOFilter::~IOFilter() { if(_dev) - sync(); + sync(true); } void IOFilter::setDevice(IODevice* dev) { if(_dev) - sync(); + sync(true); _dev = dev; } -void IOFilter::sync() +void IOFilter::sync(bool close) { _dev->_sync(); } |