diff --git a/eo/src/eoProportionalOpSel.h b/eo/src/eoProportionalOpSel.h index d34fa47d6..3f8cbc997 100644 --- a/eo/src/eoProportionalOpSel.h +++ b/eo/src/eoProportionalOpSel.h @@ -59,8 +59,8 @@ public: /** Gets a non-const reference to an operator, so that it can be changed, modified or whatever @param _id a previously assigned ID - @throw runtime_error if the ID does not exist*/ - virtual const eoOp& getOp( ID _id ) { + @throw runtime_error if the ID does not exist*/ + virtual eoOp& getOp( ID _id ) { MMF::iterator i=begin(); ID j = 1; while ( (i++!=end()) && (j++ != _id) ); diff --git a/eo/test/t-parser.cpp b/eo/test/t-parser.cpp index 268f391c9..222039e3e 100644 --- a/eo/test/t-parser.cpp +++ b/eo/test/t-parser.cpp @@ -17,7 +17,7 @@ void GetOutputParam(Parser & parser, try { parser.AddTitle("Separate parameter: the output file name"); _string = parser.getString("-O", "--OutputFile", "", "The output file name" ); - } catch (UException & e) { + } catch (logic_error & e) { cout << e.what() << endl; parser.printHelp(); exit(1); @@ -34,7 +34,7 @@ void sub(Parser & parser) { try { parser.AddTitle("Private parameters of subroutine sub"); i = parser.getInt("-j", "--sint", "5", "private integer of subroutine" ); - } catch (UException & e) { + } catch (logic_error & e) { cout << e.what() << endl; parser.printHelp(); exit(1); @@ -62,7 +62,7 @@ void getParams( Parser & parser, _array = parser.getArray("-a", "--array", "a b", "an array enclosed within < >" ); _boolean = parser.getBool("-b","--bool", "a bool value" ); } - catch (UException & e) + catch (logic_error & e) { cout << e.what() << endl; parser.printHelp();