[Qtcsharp-patches] Bugtussle/src/static/clib libqtcglobal.h,1.2,1.3
Status: Inactive
Brought to you by:
manyoso
|
From: Andreas H. <ah...@us...> - 2005-05-16 21:51:49
|
Update of /cvsroot/qtcsharp/Bugtussle/src/static/clib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14961/src/static/clib Modified Files: libqtcglobal.h Log Message: value type return types Index: libqtcglobal.h =================================================================== RCS file: /cvsroot/qtcsharp/Bugtussle/src/static/clib/libqtcglobal.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** libqtcglobal.h 17 Aug 2004 08:44:26 -0000 1.2 --- libqtcglobal.h 16 May 2005 17:21:32 -0000 1.3 *************** *** 4,7 **** --- 4,8 ---- #include <qglobal.h> #include <qplatformdefs.h> + #include <memory> #if defined(Q_CC_BOR) || defined(Q_CC_MSVC) *************** *** 26,29 **** --- 27,35 ---- #endif + template<class T>T valueType(T* value) + { + std::auto_ptr<T> p(value); + return *p; + } #endif |