Skip to content

Trailing blanks and other minor things #34

@irwir

Description

@irwir

1. The current version got a lot of white space at line ends in Docs and Doxyfile.
Global replace with regular expression can be used or some kind of trim utility.

2. In ResizableMsgSupport.h lines 80, 86 and 92 can get const modifier, lke this:
inline BOOL Send_QueryProperties(HWND hWnd, const LPRESIZEPROPERTIES pResizeProperties)

  1. Ordering class members by size in descending order usually helps to avoid memory wasted for alignment.
    For example, class CResizableMinMax in ResizableMinMax.h in 64-bit build needs 4-byte padding after the last BOOL
    It would be better to move the block of BOOL members after POINT block - no wasted space inside the class structure.
    By the way, it is possible to visualise memory layout in the latest VS2022.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions