Adds std namespace to shared_ptr usages in graphics.

This was SVN commit r25525.
This commit is contained in:
vladislavbelov
2021-05-22 19:21:33 +00:00
parent 0728c58a4d
commit b03b560e71
20 changed files with 53 additions and 53 deletions
+3 -3
View File
@@ -29,13 +29,13 @@
#include <cfloat>
shared_ptr<CFont> CFontManager::LoadFont(CStrIntern fontName)
std::shared_ptr<CFont> CFontManager::LoadFont(CStrIntern fontName)
{
FontsMap::iterator it = m_Fonts.find(fontName);
if (it != m_Fonts.end())
return it->second;
shared_ptr<CFont> font(new CFont());
std::shared_ptr<CFont> font(new CFont());
if (!ReadFont(font.get(), fontName))
{
@@ -55,7 +55,7 @@ bool CFontManager::ReadFont(CFont* font, CStrIntern fontName)
const VfsPath path(L"fonts/");
// Read font definition file into a stringstream
shared_ptr<u8> buf;
std::shared_ptr<u8> buf;
size_t size;
const VfsPath fntName(fontName.string() + ".fnt");
if (g_VFS->LoadFile(path / fntName, buf, size) < 0)