From 8984824abed4f5bb2153adbe6b78ca6f92de913a Mon Sep 17 00:00:00 2001 From: Adam Stark Date: Sat, 23 Jan 2021 18:59:10 +0000 Subject: [PATCH] Changes to match code style for new file loading code --- AudioFile.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/AudioFile.h b/AudioFile.h index 4b40ea2..b5d2e9b 100644 --- a/AudioFile.h +++ b/AudioFile.h @@ -460,21 +460,21 @@ bool AudioFile::load (std::string filePath) std::vector fileData; - file.unsetf(std::ios::skipws); + file.unsetf (std::ios::skipws); - file.seekg(0, std::ios::end); + file.seekg (0, std::ios::end); size_t length = file.tellg(); - file.seekg(0, std::ios::beg); + file.seekg (0, std::ios::beg); // allocate - fileData.resize(length); + fileData.resize (length); - file.read(reinterpret_cast(fileData.data()), length); + file.read(reinterpret_cast (fileData.data()), length); file.close(); if (file.gcount() != length) { - reportError("ERROR: Couldn't read entire file\n" + filePath); + reportError ("ERROR: Couldn't read entire file\n" + filePath); return false; }