diff options
author | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-12-17 14:38:31 +0100 |
---|---|---|
committer | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-12-17 14:38:31 +0100 |
commit | 0ce74416985061dee60253221a77e6b06b4ed12b (patch) | |
tree | 6eafafdcfb6d2928fbab2a796f64055c01345543 /src/example/loadfont.cpp | |
parent | 69ca7fdd738fd4ed98aefc07bab5a43486a55619 (diff) |
readded const and used emplace instead
Diffstat (limited to 'src/example/loadfont.cpp')
-rw-r--r-- | src/example/loadfont.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/example/loadfont.cpp b/src/example/loadfont.cpp index ed67ffa..6fb9760 100644 --- a/src/example/loadfont.cpp +++ b/src/example/loadfont.cpp @@ -26,7 +26,7 @@ int main() { std::unique_ptr<Text> label2 = std::make_unique<Text>( 1, vec2(100, 100), vec2(0, 0), "fsaafdafsdafsdafsdasfdds", Text::Data{}); Asset asset = Asset("test test"); - label->font = asset; + label->font.emplace(asset); std::cout << label->font.value().get_path() << std::endl; // label2->font = std::make_optional(asset); // std::cout << "Path: " << label2->font.get_path() << std::endl; |