diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2011-12-26 03:38:13 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2011-12-26 03:38:50 +0900 |
commit | 5451e9c702afb7c570662c740b33f2481abb7cb1 (patch) | |
tree | ef491adee50b35a977830dc9431eb308434cce4e /soltools | |
parent | bf2857d88af137ba15939d81970be92b0310c915 (diff) |
catch exception by constant reference
Diffstat (limited to 'soltools')
-rw-r--r-- | soltools/adjustvisibility/adjustvisibility.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/soltools/adjustvisibility/adjustvisibility.cxx b/soltools/adjustvisibility/adjustvisibility.cxx index 088e8ab404fe..a6e7c24dd449 100644 --- a/soltools/adjustvisibility/adjustvisibility.cxx +++ b/soltools/adjustvisibility/adjustvisibility.cxx @@ -218,7 +218,7 @@ void adjustVisibility( const std::string& rFile, int fd, bool bVerbose) } elf_end(pElf); - } catch (ElfError& e) { + } catch (const ElfError& e) { close(fd); throw; } @@ -302,7 +302,7 @@ int main(int argc, char* argv[]) processObject(std::string(argv[optind]), bPreserve, bVerbose); } - } catch (std::exception& e) { + } catch (const std::exception& e) { std::cerr << argv[0] << ": " << e.what() << "\n"; return 1; } |