forked from qt-creator/qt-creator
Catch exceptions by const reference.
Change-Id: Ic537fd123478a4f8fe4e54736d444fa64fd62d9c Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -117,7 +117,7 @@ bool ElfMapper::map()
|
||||
// Try reading the data into memory instead.
|
||||
try {
|
||||
raw = file.readAll();
|
||||
} catch (std::bad_alloc &) {
|
||||
} catch (const std::bad_alloc &) {
|
||||
return false;
|
||||
}
|
||||
start = raw.constData();
|
||||
|
||||
Reference in New Issue
Block a user