Qt logo

qshared.h


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.3 1998/07/03 00:09:46 hanord Exp $
**
** Definition of QShared struct
**
** Created : 940112
**
** Copyright (C) 1992-1998 Troll Tech AS.  All rights reserved.
**
** This file is part of Troll Tech's internal development tree for Qt.
**
** This header text will be replaced by an appropriate text by the
** mkdist script which generates external distributions.
**
** If you are using the Qt Professional Edition or the Qt Free Edition,
** please notify Troll Tech at <info@troll.no> if you see this text.
**
** To Troll Tech developers: This header was generated by the script
** fixcopyright-int. It has the same number of text lines as the free
** and professional editions to avoid line number inconsistency.
**
*****************************************************************************/

#ifndef QSHARED_H
#define QSHARED_H

#ifndef QT_H
#include "qglobal.h"
#endif // QT_H


struct QShared
{
    QShared()           { count = 1; }
    void ref()          { count++; }
    bool deref()        { return !--count; }
    uint count;
};


#endif // QSHARED_H


Copyright © 1998 Troll TechTrademarks
Qt version 1.41