On  1 Sep, To: Don Lewis wrote:

> One of the -Wunused-parameter warnings led me to this questionable bit
> of code in filter/source/xsltfilter/containerhelper.hxx:
>         template<typename FuncType, typename ParamType>
>         inline void forEachMem(FuncType pFunc, ParamType aParam) const
>         {
>                 forEach( ::boost::bind(pFunc, _1, aParam));
>         }
>         template<typename FuncType, typename ParamType1, typename ParamType2>
>         inline void forEachMem(FuncType pFunc, ParamType1 aParam1, ParamType2 
> aParam2) const
>         {
>                 forEach( ::boost::bind(pFunc, -1, aParam1, aParam2 ));
>         }
>         template<typename FuncType, typename ParamType1, typename ParamType2, 
> typename ParamType3>
>         inline void forEachMem( FuncType pFunc, ParamType1 aParam1, 
> ParamType2 aParam2, ParamType3 aParam3 ) const
>         {
>                 forEach( ::boost::bind(pFunc, _1, aParam2, aParam2, aParam3 
> ));
>         }
> In the three parameter version of this code, it looks like aParam1
> should be used instead of using aParam2 twice.  Also, in the two
> parameter version of the code, it looks like _1 should be used instead
> of -1.  I haven't had a chance to investigate the possible symptoms of
> these errors or how to text the appropriate fix.

The answer is that the code in question does not appear to be used. Only
the version that doesn't take any parameters (not shown above) is used
in the filter module.

There are also copies of this code in the oox module that appear to be

To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org

Reply via email to