Date: prev next · Thread: first prev next last
2017 Archives by date, by thread · List index


On 11/28/2017 04:30 AM, scan-admin@coverity.com wrote:
** CID 1424265:  Parse warnings  (PARSE_ERROR)
/sc/source/ui/miscdlgs/dataproviderdlg.cxx: 223 in ()


________________________________________________________________________________________________________
*** CID 1424265:  Parse warnings  (PARSE_ERROR)
/sc/source/ui/miscdlgs/dataproviderdlg.cxx: 223 in ()
217         { 1, "Cancel & Quit", &ScDataProviderDlg::cancelAndQuit }
218     };
219
220     MenuData aColumnData[] = {
221         { 0, "Delete Column", &ScDataProviderDlg::deleteColumn },
222         { 1, "Split Column", &ScDataProviderDlg::splitColumn },
     CID 1424265:  Parse warnings  (PARSE_ERROR)
     no suitable constructor exists to convert from "void (ScDataProviderDlg::*)()" to "std::function<void 
(ScDataProviderDlg *)>"
223         { 2, "Merge Columns", &ScDataProviderDlg::mergeColumns },
224     };
225
226     class ScDataTransformationBaseControl : public VclContainer,
227                                         public VclBuilderContainer
228     {

That's apparently a bug in Coverity Scan; std::functions's

  template<class F> function(F f);

constructor template is eligible here, as void (ScDataProviderDlg::*)() is Lvalue-Callable for argument types ScDataProviderDlg* and return type void.

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.