Angus Leeming wrote: >> string str; >> if (...) { >> str = ... >> } else if (...) { >> str =... >> } >> return str; >> >>to >> >> if (...) >> return ... >> if (...) >> return ... >> return string(); >> >>? I find this more readable as I do not have to scroll down to learn that >>str is no further modified and it might save a copy as well. >> > > Go ahead. > Angus >
when developpers have no real new ideas or tired of bughunting, then they beautify the code ... Herbert -- http://www.lyx.org/help/