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

index 0738e60e6ff1dd6c30f597875c09bbd191780cd9..6dfeaa87ed1453bd80460d098d06862405cac444 100644 (file)
@@ -60,13 +60,14 @@ namespace creaButtonContainer
                {
                        try
                        {
-                               return ( this->m_Buttons[ id ] );
+                               //return ( this->m_Buttons[ id ] ); // JPR
                        }//yrt
                        catch ( std::exception& e )
                        {
                                std::cerr << "ButtonGroup::GetButton( long id )" << "exception: "
                                    << e.what( ) << std::endl;
                        }//hctac
+                       return ( this->m_Buttons[ id ] );// JPR
                }
        // ----------------------------------------------------------------------------------
        }//ecapseman