diff --git a/src/fontcache/truetypefontcache.h b/src/fontcache/truetypefontcache.h index 7af13dc149..2ce94c5d35 100644 --- a/src/fontcache/truetypefontcache.h +++ b/src/fontcache/truetypefontcache.h @@ -29,7 +29,7 @@ protected: /** Container for information about a glyph. */ struct GlyphEntry { - std::unique_ptr data; ///< The loaded sprite. + std::unique_ptr data; ///< The loaded sprite. uint8_t width = 0; ///< The width of the glyph. Sprite *GetSprite() { return reinterpret_cast(data.get()); } diff --git a/src/spritecache.cpp b/src/spritecache.cpp index 64effb953a..3ffff15e01 100644 --- a/src/spritecache.cpp +++ b/src/spritecache.cpp @@ -899,7 +899,7 @@ void *CacheSpriteAllocator::AllocatePtr(size_t mem_req) void *UniquePtrSpriteAllocator::AllocatePtr(size_t size) { - this->data = std::make_unique(size); + this->data = std::make_unique(size); return this->data.get(); } diff --git a/src/spritecache.h b/src/spritecache.h index 09fee98a92..54ab1f3dc9 100644 --- a/src/spritecache.h +++ b/src/spritecache.h @@ -34,7 +34,7 @@ extern uint _sprite_cache_size; /** SpriteAllocator that allocates memory via a unique_ptr array. */ class UniquePtrSpriteAllocator : public SpriteAllocator { public: - std::unique_ptr data; + std::unique_ptr data; protected: void *AllocatePtr(size_t size) override; };