Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
Catch exception as const references instead of non-const reference.
The exception is not modified here...
  • Loading branch information
skyjake committed Oct 16, 2012
1 parent 93243ca commit 6c1f60f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doomsday/libdeng2/src/c_wrapper.cpp
Expand Up @@ -106,7 +106,7 @@ int LegacyCore_SetLogFile(const char* filePath)
DENG2_LEGACYCORE().setLogFileName(filePath);
return true;
}
catch(de::LogBuffer::FileError& er)
catch(const de::LogBuffer::FileError& er)
{
LOG_AS("LegacyCore_SetLogFile");
LOG_WARNING(er.asText());
Expand Down Expand Up @@ -354,7 +354,7 @@ Info* Info_NewFromString(const char* utf8text)
self->parse(QString::fromUtf8(utf8text));
return reinterpret_cast<Info*>(self.take());
}
catch(de::Error& er)
catch(const de::Error& er)
{
LOG_WARNING(er.asText());
}
Expand Down

0 comments on commit 6c1f60f

Please sign in to comment.