Mercurial > hg > svcore
diff data/fileio/MatrixFile.cpp @ 259:dc46851837d6
* Fix many compile warnings, remove some debug output
author | Chris Cannam |
---|---|
date | Mon, 30 Apr 2007 13:36:23 +0000 |
parents | 3e6fee4e4257 |
children | 7aa1de571880 |
line wrap: on
line diff
--- a/data/fileio/MatrixFile.cpp Mon Apr 30 09:07:42 2007 +0000 +++ b/data/fileio/MatrixFile.cpp Mon Apr 30 13:36:23 2007 +0000 @@ -159,7 +159,7 @@ QMutexLocker locker(&m_refcountMutex); ++m_refcount[fileName]; - std::cerr << "MatrixFile(" << this << "): fd " << m_fd << ", file " << fileName.toStdString() << ", ref " << m_refcount[fileName] << std::endl; +// std::cerr << "MatrixFile(" << this << "): fd " << m_fd << ", file " << fileName.toStdString() << ", ref " << m_refcount[fileName] << std::endl; // std::cerr << "MatrixFile::MatrixFile: Done, size is " << "(" << m_width << ", " << m_height << ")" << std::endl; @@ -196,10 +196,10 @@ if (--m_refcount[m_fileName] == 0) { if (::unlink(m_fileName.toLocal8Bit())) { - ::perror("Unlink failed"); - std::cerr << "WARNING: MatrixFile::~MatrixFile: reference count reached 0, but failed to unlink file \"" << m_fileName.toStdString() << "\"" << std::endl; +// ::perror("Unlink failed"); +// std::cerr << "WARNING: MatrixFile::~MatrixFile: reference count reached 0, but failed to unlink file \"" << m_fileName.toStdString() << "\"" << std::endl; } else { - std::cerr << "deleted " << m_fileName.toStdString() << std::endl; +// std::cerr << "deleted " << m_fileName.toStdString() << std::endl; } QMutexLocker locker2(&m_columnBitsetWriteMutex); @@ -212,9 +212,9 @@ totalMemory -= (2 * m_defaultCacheWidth * m_height * m_cellSize); totalCount --; - std::cerr << "MatrixFile::~MatrixFile: " << std::endl; - std::cerr << "Total storage now " << totalStorage/1024 << "K, theoretical max memory " - << totalMemory/1024 << "K in " << totalCount << " instances" << std::endl; +// std::cerr << "MatrixFile::~MatrixFile: " << std::endl; +// std::cerr << "Total storage now " << totalStorage/1024 << "K, theoretical max memory " +// << totalMemory/1024 << "K in " << totalCount << " instances" << std::endl; }