Instead of passing them by value, use const reference. This change is safe to do, because these methods' signatures were different in 2.8 anyhow. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67099 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775