diff options
| author | Henny022p <info@henny022.de> | 2021-11-23 20:22:22 +0100 |
|---|---|---|
| committer | Henny022p <info@henny022.de> | 2021-11-23 20:22:22 +0100 |
| commit | 794d5fc97cb01a70c8579dc08962b667edf5a29e (patch) | |
| tree | f1655a0b50bf25b9cebc2849f6da520599d933e9 /tools/src/asset_processor/offsets.cpp | |
| parent | dee773da4a12af1c48bf58d6275fe4fed20871b6 (diff) | |
cleaned asset_processor to build without warnings
Diffstat (limited to 'tools/src/asset_processor/offsets.cpp')
| -rw-r--r-- | tools/src/asset_processor/offsets.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/src/asset_processor/offsets.cpp b/tools/src/asset_processor/offsets.cpp index 48ed4139..bff5b1a5 100644 --- a/tools/src/asset_processor/offsets.cpp +++ b/tools/src/asset_processor/offsets.cpp @@ -1,9 +1,9 @@ #include "offsets.h" -OffsetCalculator::OffsetCalculator(std::filesystem::path outputFile, int baseOffset) : baseOffset(baseOffset) { - output = std::ofstream(outputFile); +OffsetCalculator::OffsetCalculator(const std::filesystem::path& outputFile, int baseOffset_) + : output(outputFile), baseOffset(baseOffset_) { } -void OffsetCalculator::addAsset(int start, std::string symbol) { - this->output << "\t.equiv offset_" << symbol << ", " << start - this->baseOffset << std::endl; +void OffsetCalculator::addAsset(int start, const std::string& symbol) { + output << "\t.equiv offset_" << symbol << ", " << start - baseOffset << std::endl; }
\ No newline at end of file |
