]> Creatis software - creaMaracasVisu.git/commitdiff
avoid "control reaches end of non-void function"
authorjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Wed, 27 Jul 2011 13:47:51 +0000 (13:47 +0000)
committerjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Wed, 27 Jul 2011 13:47:51 +0000 (13:47 +0000)
lib/maracasVisuLib/src/interface/wxWindows/widgets/creaButtonContainer/model/buttonGroupFactory.cxx

index f596414134ef4a2af268de228afa0b69cf51f11a..57cbf9b544572f124519244a19b6a7d996d47d50 100644 (file)
@@ -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