summaryrefslogtreecommitdiff
path: root/src/factories/SampleFactory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/factories/SampleFactory.cpp')
-rw-r--r--src/factories/SampleFactory.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/factories/SampleFactory.cpp b/src/factories/SampleFactory.cpp
index f367a1e..ec88060 100644
--- a/src/factories/SampleFactory.cpp
+++ b/src/factories/SampleFactory.cpp
@@ -1,6 +1,6 @@
#include "SampleFactory.h"
-void SampleBinaryExporter::Export(std::ostream &write, std::shared_ptr<IParsedData> raw, std::string& entryName, YAML::Node &node, std::string* replacement ) {
+ExportResult SampleBinaryExporter::Export(std::ostream &write, std::shared_ptr<IParsedData> raw, std::string& entryName, YAML::Node &node, std::string* replacement ) {
auto writer = LUS::BinaryWriter();
auto sample = std::static_pointer_cast<SampleData>(raw)->mSample;
@@ -30,6 +30,7 @@ void SampleBinaryExporter::Export(std::ostream &write, std::shared_ptr<IParsedDa
writer.Write(sample.name);
writer.Finish(write);
+ return std::nullopt;
}
std::optional<std::shared_ptr<IParsedData>> SampleFactory::parse(std::vector<uint8_t>& buffer, YAML::Node& data) {