X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9183da066e07f3e9105bf4cec9e3e8c1ddb04b72..fcc9c05e7a71901e282e39bf4ed7f1d2b4641889:/include/wx/strvararg.h diff --git a/include/wx/strvararg.h b/include/wx/strvararg.h index 4cbe39b3aa..b7a1a19d86 100644 --- a/include/wx/strvararg.h +++ b/include/wx/strvararg.h @@ -227,10 +227,21 @@ struct wxFormatStringArgumentFinder template<> struct wxFormatStringArgumentFinder -{ - static wxFormatStringArgument find(const wxFormatString& arg) - { return wxFormatStringArgument(&arg); } -}; + : public wxFormatStringArgumentFinder {}; + +// avoid passing big objects by value to wxFormatStringArgumentFinder::find() +// (and especially wx[W]CharBuffer with its auto_ptr<> style semantics!): +template<> +struct wxFormatStringArgumentFinder + : public wxFormatStringArgumentFinder {}; + +template<> +struct wxFormatStringArgumentFinder + : public wxFormatStringArgumentFinder {}; + +template<> +struct wxFormatStringArgumentFinder + : public wxFormatStringArgumentFinder {}; // ----------------------------------------------------------------------------