Files
core/ASCImageStudio3/ASCGraphics/Objects/Font/FontFile.cpp
Elen.Subbotina 70e623d70b восстановление
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@62634 954022d7-b5bf-4e40-9824-e11837661b57
2016-05-21 00:05:02 +03:00

32 lines
608 B
C++

#include "stdafx.h"
#include "FontFile.h"
//-------------------------------------------------------------------------------------------------------------------------------
// CFontFile
//-------------------------------------------------------------------------------------------------------------------------------
CFontFile::CFontFile(wchar_t *wsFileName, long lIndex)
{
m_wsFileName = CStringW( wsFileName );
m_lIndex = lIndex;
m_nRef = 0;
}
CFontFile::~CFontFile()
{
}
void CFontFile::AddRef()
{
++m_nRef;
}
void CFontFile::Release()
{
if ( !--m_nRef )
{
delete this;
}
}