Added `const' to catched exception.
committer: mfx <mfx> 983114224 +0000
This commit is contained in:
+2
-2
@@ -145,7 +145,7 @@ static bool is_dlm(InputFile *fi, long coff_offset)
|
|||||||
fi->readx(buf,4);
|
fi->readx(buf,4);
|
||||||
if (memcmp(buf,"DLMF",4) == 0)
|
if (memcmp(buf,"DLMF",4) == 0)
|
||||||
return true;
|
return true;
|
||||||
} catch (IOException&) {
|
} catch (const IOException&) {
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -163,7 +163,7 @@ static void handle_allegropak(InputFile *fi, OutputFile *fo)
|
|||||||
return;
|
return;
|
||||||
pfsize = get_be32(buf+4);
|
pfsize = get_be32(buf+4);
|
||||||
fi->seek(-(off_t)pfsize,SEEK_END);
|
fi->seek(-(off_t)pfsize,SEEK_END);
|
||||||
} catch (IOException&) {
|
} catch (const IOException&) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
while (pfsize)
|
while (pfsize)
|
||||||
|
|||||||
+1
-1
@@ -100,7 +100,7 @@ static Packer* try_pack(Packer *p, InputFile *f)
|
|||||||
f->seek(0,SEEK_SET);
|
f->seek(0,SEEK_SET);
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
} catch (IOException&) {
|
} catch (const IOException&) {
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
delete p;
|
delete p;
|
||||||
throw;
|
throw;
|
||||||
|
|||||||
Reference in New Issue
Block a user