Style fixup

astyle --kr
This commit is contained in:
Mike
2016-01-07 21:25:35 +00:00
committed by Mike Walters
parent 27bf33a6c7
commit 75769550c2
11 changed files with 327 additions and 311 deletions

View File

@@ -27,7 +27,8 @@
#include <stdexcept>
InputSource::InputSource(const char *filename) {
InputSource::InputSource(const char *filename)
{
m_file = fopen(filename, "rb");
if (m_file == nullptr)
throw std::runtime_error("Error opening file");
@@ -43,7 +44,8 @@ InputSource::InputSource(const char *filename) {
throw std::runtime_error("Error mmapping file");
}
InputSource::~InputSource() {
InputSource::~InputSource()
{
munmap(m_data, m_file_size);
fclose(m_file);
}