Added `const' to catched exception.

committer: mfx <mfx> 983114224 +0000
This commit is contained in:
Markus F.X.J. Oberhumer
2001-02-25 15:17:04 +00:00
parent 48a520708b
commit 8897c3d4cb
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -145,7 +145,7 @@ static bool is_dlm(InputFile *fi, long coff_offset)
fi->readx(buf,4);
if (memcmp(buf,"DLMF",4) == 0)
return true;
} catch (IOException&) {
} catch (const IOException&) {
}
return false;
}
@@ -163,7 +163,7 @@ static void handle_allegropak(InputFile *fi, OutputFile *fo)
return;
pfsize = get_be32(buf+4);
fi->seek(-(off_t)pfsize,SEEK_END);
} catch (IOException&) {
} catch (const IOException&) {
return;
}
while (pfsize)
+1 -1
View File
@@ -100,7 +100,7 @@ static Packer* try_pack(Packer *p, InputFile *f)
f->seek(0,SEEK_SET);
return p;
}
} catch (IOException&) {
} catch (const IOException&) {
} catch (...) {
delete p;
throw;