mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-11 07:23:34 +08:00
32 lines
608 B
C++
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;
|
|
}
|
|
}
|