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 authored and Facebook GitHub Bot committed 2022-02-27 22:23:48 -08:00
1 parent 5c9c901d0c
commit 926ab6ca26
1 file changed
+12
@@ -36,6 +36,18 @@ class TextLayoutManager {
: kSimpleThreadSafeCacheSizeCap) {}
~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.
*/