Mark TextLayoutManager as not copyable / not movable

Summary:
TextLayoutManger should be not copyable / not movable

changelog: [internal] internal

Reviewed By: javache

Differential Revision: D34246013

fbshipit-source-id: dc20db2ad9e2709ddca5bef5218356bd2b292c2d
This commit is contained in:
David Vacca 2022-02-27 22:23:48 -08:00 коммит произвёл Facebook GitHub Bot
Родитель 5c9c901d0c
Коммит 926ab6ca26
1 изменённых файлов: 12 добавлений и 0 удалений

Просмотреть файл

@ -36,6 +36,18 @@ class TextLayoutManager {
: kSimpleThreadSafeCacheSizeCap) {} : kSimpleThreadSafeCacheSizeCap) {}
~TextLayoutManager(); ~TextLayoutManager();
/*
* Not copyable.
*/
TextLayoutManager(TextLayoutManager const &) = delete;
TextLayoutManager &operator=(TextLayoutManager const &) = delete;
/*
* Not movable.
*/
TextLayoutManager(TextLayoutManager &&) = delete;
TextLayoutManager &operator=(TextLayoutManager &&) = delete;
/* /*
* Measures `attributedString` using native text rendering infrastructure. * Measures `attributedString` using native text rendering infrastructure.
*/ */