Skip to content

Commit

Permalink
GRAPHICS: Rethrow the caught exception instead of a copy
Browse files Browse the repository at this point in the history
  • Loading branch information
DrMcCoy committed Mar 19, 2013
1 parent b163099 commit 663fee6
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/graphics/aurora/pltfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ void PLTFile::load() {
delete plt;

e.add("Failed reading PLT file \"%s\"", _name.c_str());
throw e;
throw;
}

delete plt;
Expand Down
2 changes: 1 addition & 1 deletion src/graphics/images/dds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ void DDS::load(Common::SeekableReadStream &dds) {

} catch (Common::Exception &e) {
e.add("Failed reading DDS file");
throw e;
throw;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/graphics/images/sbm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ void SBM::load(Common::SeekableReadStream &sbm) {

} catch (Common::Exception &e) {
e.add("Failed reading SBM file");
throw e;
throw;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/graphics/images/tga.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ void TGA::load(Common::SeekableReadStream &tga) {

} catch (Common::Exception &e) {
e.add("Failed reading TGA file");
throw e;
throw;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/graphics/images/tpc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ void TPC::load(Common::SeekableReadStream &tpc) {

} catch (Common::Exception &e) {
e.add("Failed reading TPC file");
throw e;
throw;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/graphics/images/txb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ void TXB::load(Common::SeekableReadStream &txb) {

} catch (Common::Exception &e) {
e.add("Failed reading TXB file");
throw e;
throw;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/graphics/images/winiconimage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ void WinIconImage::load(Common::SeekableReadStream &cur) {

} catch (Common::Exception &e) {
e.add("Failed reading CUR file");
throw e;
throw;
}
}

Expand Down

0 comments on commit 663fee6

Please sign in to comment.