From: jean-pierre roux Date: Wed, 27 Jul 2011 13:47:51 +0000 (+0000) Subject: avoid "control reaches end of non-void function" X-Git-Tag: v1.0.4~75 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=84c0fda89190f951f9948b7f8089ffaef78b96fb;p=creaMaracasVisu.git avoid "control reaches end of non-void function" --- diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/creaButtonContainer/model/buttonGroupFactory.cxx b/lib/maracasVisuLib/src/interface/wxWindows/widgets/creaButtonContainer/model/buttonGroupFactory.cxx index f596414..57cbf9b 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/creaButtonContainer/model/buttonGroupFactory.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/creaButtonContainer/model/buttonGroupFactory.cxx @@ -61,7 +61,7 @@ namespace creaButtonContainer long id = wxNewId( ); buttonList[ id ] = new Button( parent, id, *it ); }//rof - return ( buttonList ); + //return ( buttonList ); // JPR }//yrt catch ( const std::exception& e ) { @@ -69,6 +69,7 @@ namespace creaButtonContainer << "ButtonGroupFactory::GetButtons( wxWindow* parent, ButtonList buttonModel )" << "exception: " << e.what( ) << std::endl; }//chtac + return ( buttonList ); // JPR } // ---------------------------------------------------------------------------------- }//ecapseman