mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-09-17 00:18:11 +08:00
Use shared_ptr instead of unique_ptr for elements.
This allow users to pass it into initializer list. Then clang-format will produce 'acceptable' indentations. This fixes: https://github.com/ArthurSonzogni/FTXUI/issues/18
This commit is contained in:
@@ -31,7 +31,7 @@ struct Pixel {
|
||||
|
||||
struct Dimension {
|
||||
static Dimension Fixed(int);
|
||||
static Dimension Fit(std::unique_ptr<Node>&);
|
||||
static Dimension Fit(std::shared_ptr<Node>&);
|
||||
static Dimension Full();
|
||||
|
||||
int dimx;
|
||||
|
Reference in New Issue
Block a user