Changeset - r28145:a48f6fd877a9
[Not reviewed]
master
0 2 0
Peter Nelson - 13 months ago 2023-11-16 17:07:29
peter1138@openttd.org
Codechange: Move RectPadding::zero definition to header. (#11461)

This potentially allows better inlining/optimization.
2 files changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/core/geometry_func.cpp
Show inline comments
 
@@ -48,5 +48,3 @@ Rect BoundingRect(const Rect &r1, const 
 

	
 
	return r;
 
}
 

	
 
const RectPadding RectPadding::zero = {0, 0, 0, 0};
src/core/geometry_type.hpp
Show inline comments
 
@@ -65,6 +65,8 @@ struct RectPadding {
 
	inline uint Vertical() const { return this->top + this->bottom; }
 
};
 

	
 
inline const RectPadding RectPadding::zero{};
 

	
 
/** Specification of a rectangle with absolute coordinates of all edges */
 
struct Rect {
 
	int left;
0 comments (0 inline, 0 general)