diff options
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; } |