From f1eeeb02af69ebedf0cd80a6d602220dcebe1732 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 10 Jul 2021 22:53:01 +0100 Subject: [PATCH] Rename variable in render sample to a more generic name This will be used for things other than the header button too, so don't use "Hdr" in its name. No real changes, this is just a refactoring. --- samples/render/render.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/render/render.cpp b/samples/render/render.cpp index dd1a4bc6df..e16d7b0c98 100644 --- a/samples/render/render.cpp +++ b/samples/render/render.cpp @@ -247,7 +247,7 @@ private: y += lineHeight*3; const wxCoord heightHdr = renderer.GetHeaderButtonHeight(this); - const wxCoord widthHdr = 120; + const wxCoord width = 120; const wxHeaderSortIconType hdrSortIcon = m_useIcon ? wxHDR_SORT_ICON_UP @@ -266,13 +266,13 @@ private: // implementation. dc.DrawText("DrawHeaderButton() (default)", x1, y); wxRendererNative::GetDefault().DrawHeaderButton(this, dc, - wxRect(x2, y, widthHdr, heightHdr), m_flags, + wxRect(x2, y, width, heightHdr), m_flags, hdrSortIcon, &hdrParams); y += lineHeight + heightHdr; dc.DrawText("DrawHeaderButton() (overridden)", x1, y); renderer.DrawHeaderButton(this, dc, - wxRect(x2, y, widthHdr, heightHdr), m_flags, + wxRect(x2, y, width, heightHdr), m_flags, hdrSortIcon, &hdrParams); y += lineHeight + heightHdr;