]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/creaButtonContainer/model/buttonGroupFactory.cxx
avoid "control reaches end of non-void function"
[creaMaracasVisu.git] / 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