[Libufo-commits] ufo-0.5/include/ufo ucollectable.hpp,1.10,1.11 ufo_debug.hpp,1.10,1.11
Status: Beta
Brought to you by:
schmidtjf
|
From: Johannes S. <sch...@us...> - 2005-09-30 12:36:34
|
Update of /cvsroot/libufo/ufo-0.5/include/ufo In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3955/include/ufo Modified Files: ucollectable.hpp ufo_debug.hpp Log Message: Fixed warnings about unsed parameters. Index: ucollectable.hpp =================================================================== RCS file: /cvsroot/libufo/ufo-0.5/include/ufo/ucollectable.hpp,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** ucollectable.hpp 21 May 2005 15:17:23 -0000 1.10 --- ucollectable.hpp 30 Sep 2005 12:36:26 -0000 1.11 *************** *** 69,73 **** // hm, evil void * operator new(std::size_t size); ! void operator delete(void * p, std::size_t size); private: mutable unsigned int m_refCount : 31; --- 69,73 ---- // hm, evil void * operator new(std::size_t size); ! void operator delete(void * p, std::size_t /* size */); private: mutable unsigned int m_refCount : 31; *************** *** 104,108 **** inline void ! UCollectable::operator delete(void * p, std::size_t size) { ::operator delete(p); } --- 104,108 ---- inline void ! UCollectable::operator delete(void * p, std::size_t /* size */) { ::operator delete(p); } Index: ufo_debug.hpp =================================================================== RCS file: /cvsroot/libufo/ufo-0.5/include/ufo/ufo_debug.hpp,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** ufo_debug.hpp 13 Feb 2005 17:49:31 -0000 1.10 --- ufo_debug.hpp 30 Sep 2005 12:36:26 -0000 1.11 *************** *** 72,82 **** UDebugStream(std::streambuf * buf) : m_stream(new ostream_type(buf)) {} UDebugStream & operator<<(ostream_type & (*pf)(ostream_type &)) { - #ifdef UFO_DEBUG *m_stream << (pf); - #endif return *this; } template<typename T> --- 72,87 ---- UDebugStream(std::streambuf * buf) : m_stream(new ostream_type(buf)) {} + #ifdef UFO_DEBUG UDebugStream & operator<<(ostream_type & (*pf)(ostream_type &)) { *m_stream << (pf); return *this; } + #else + UDebugStream & + operator<<(ostream_type & (*/* pf */)(ostream_type &)) { + return *this; + } + #endif template<typename T> |