This is the verbatim text of the qshared.h include file. It is is provided only for illustration; the copyright remains with Troll Tech.
/**************************************************************************** ** $Id: qshared.h,v 2.0 1996/09/24 10:16:14 agulbra Exp $ ** ** Definition of QShared struct ** ** Created : 940112 ** ** Copyright (C) 1994-1996 by Troll Tech AS. All rights reserved. ** *****************************************************************************/ #ifndef QSHARED_H #define QSHARED_H #include "qglobal.h" struct QShared { QShared() { count = 1; } void ref() { count++; } bool deref() { return !--count; } uint count; }; #endif // QSHARED_H