mirror of
				https://github.com/ArthurSonzogni/FTXUI.git
				synced 2025-10-31 02:28:11 +08:00 
			
		
		
		
	Support the -pedantic flag.
This commit is contained in:
		| @@ -11,7 +11,7 @@ namespace ftxui { | ||||
| using Element = std::unique_ptr<Node>; | ||||
| using Elements = std::vector<Element>; | ||||
| using Decorator = std::function<Element(Element)>; | ||||
| using GraphFunction = std::function<std::vector<int>(int,int)>; | ||||
| using GraphFunction = std::function<std::vector<int>(int, int)>; | ||||
|  | ||||
| // --- Widget --- | ||||
| Element text(std::wstring text); | ||||
| @@ -22,7 +22,7 @@ Element border(Element); | ||||
| Decorator borderWith(Pixel); | ||||
| Element window(Element title, Element content); | ||||
| Element spinner(int charset_index, size_t image_index); | ||||
| Elements paragraph(std::wstring text); // Use inside hflow(). Split by space. | ||||
| Elements paragraph(std::wstring text);  // Use inside hflow(). Split by space. | ||||
| Element graph(GraphFunction); | ||||
|  | ||||
| // -- Decorator --- | ||||
| @@ -83,6 +83,6 @@ TAKE_ANY_ARGS(hbox) | ||||
| TAKE_ANY_ARGS(dbox) | ||||
| TAKE_ANY_ARGS(hflow) | ||||
|  | ||||
| };  // namespace ftxui | ||||
| }  // namespace ftxui | ||||
|  | ||||
| #endif /* end of include guard: FTXUI_DOM_ELEMENTS_HPP */ | ||||
|   | ||||
| @@ -37,6 +37,6 @@ class Node { | ||||
|  | ||||
| void Render(Screen& screen, Node* node); | ||||
|  | ||||
| };  // namespace ftxui | ||||
| }  // namespace ftxui | ||||
|  | ||||
| #endif /* end of include guard: FTXUI_DOM_NODE_HPP */ | ||||
|   | ||||
| @@ -21,6 +21,6 @@ struct Requirement { | ||||
|   Box selected_box; | ||||
| }; | ||||
|  | ||||
| }; // namespace ftxui | ||||
| } // namespace ftxui | ||||
|  | ||||
| #endif /* end of include guard: FTXUI_REQUIREMENT_HPP */ | ||||
|   | ||||
| @@ -12,6 +12,6 @@ struct Box { | ||||
|   static Box Intersection(Box a, Box b); | ||||
| }; | ||||
|  | ||||
| }; // namespace ftxui | ||||
| }  // namespace ftxui | ||||
|  | ||||
| #endif /* end of include guard: FTXUI_SCREEN_BOX_HPP */ | ||||
|   | ||||
| @@ -35,6 +35,6 @@ enum class Color : uint8_t { | ||||
|   YellowLight = 93, | ||||
| }; | ||||
|  | ||||
| }; // namespace ftxui | ||||
| } // namespace ftxui | ||||
|  | ||||
| #endif /* end of include guard: FTXUI_COLOR_H_ */ | ||||
|   | ||||
| @@ -75,6 +75,6 @@ class Screen { | ||||
|   Cursor cursor_; | ||||
| }; | ||||
|  | ||||
| };  // namespace ftxui | ||||
| }  // namespace ftxui | ||||
|  | ||||
| #endif /* end of include guard: FTXUI_SCREEN_SCREEN */ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 ArthurSonzogni
					ArthurSonzogni