(mostly passing arguments by const reference and checking LibError return codes) This was SVN commit r6214.