Reformat recently added wxOSX border code to follow wx style

Put "{" opening a block on its own line.

No real changes.
This commit is contained in:
Vadim Zeitlin
2026-06-30 22:34:07 +02:00
parent 5426a72f95
commit 98d4499e6a
+12 -6
View File
@@ -946,7 +946,8 @@ void wxWindowMac::MacInvalidateBorders()
wxRect topupdate( tx-outerBorder, ty-outerBorder, tw + 2 * outerBorder, outerBorder );
wxRect bottomupdate( tx-outerBorder, ty + th, tw + 2 * outerBorder, outerBorder );
if (GetParent()) {
if (GetParent())
{
GetParent()->GetPeer()->SetNeedsDisplay(&leftupdate);
GetParent()->GetPeer()->SetNeedsDisplay(&rightupdate);
GetParent()->GetPeer()->SetNeedsDisplay(&topupdate);
@@ -2328,23 +2329,28 @@ wxMacBorderSize wxWindowMac::MacGetBorderSize() const
return border;
}
long wxWindowMac::MacGetLeftBorderSize() const {
long wxWindowMac::MacGetLeftBorderSize() const
{
return MacGetBorderSize().left;
}
long wxWindowMac::MacGetRightBorderSize() const {
long wxWindowMac::MacGetRightBorderSize() const
{
return MacGetBorderSize().right;
}
long wxWindowMac::MacGetTopBorderSize() const {
long wxWindowMac::MacGetTopBorderSize() const
{
return MacGetBorderSize().top;
}
long wxWindowMac::MacGetBottomBorderSize() const {
long wxWindowMac::MacGetBottomBorderSize() const
{
return MacGetBorderSize().bottom;
}
void wxWindowMac::MacInvalidateInsetCache() const {
void wxWindowMac::MacInvalidateInsetCache() const
{
if ( GetPeer() )
GetPeer()->InvalidateLayoutInset();
}