This fixes the access specifier effectively used for the members following these macros, as it's changed to "public" inside them, meaning that e.g. m_privateContextMenu was actually public even though it was ostensibly declared in the private section and the intention was for it to be private. Closes #16038.