diff options
| author | Yuqian Yang <crupest@crupest.life> | 2025-11-25 17:56:35 +0800 |
|---|---|---|
| committer | Yuqian Yang <crupest@crupest.life> | 2025-11-25 17:56:35 +0800 |
| commit | 12007f9876011c56479f2af75d1657f0c50166ed (patch) | |
| tree | 089c9f5cfbce25b1339615b68ae7a9cda4dc9760 /include | |
| parent | 376d5bfe0f3b9658cbf2d4ca9b00c0600341ee85 (diff) | |
| download | cru-12007f9876011c56479f2af75d1657f0c50166ed.tar.gz cru-12007f9876011c56479f2af75d1657f0c50166ed.tar.bz2 cru-12007f9876011c56479f2af75d1657f0c50166ed.zip | |
Fix a wrong copy leading to win dynamic build failure.
Diffstat (limited to 'include')
| -rw-r--r-- | include/cru/base/Buffer.h | 6 | ||||
| -rw-r--r-- | include/cru/ui/render/LayoutRenderObject.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/cru/base/Buffer.h b/include/cru/base/Buffer.h index bc2e2a26..17da4ada 100644 --- a/include/cru/base/Buffer.h +++ b/include/cru/base/Buffer.h @@ -3,8 +3,8 @@ #include "Base.h" namespace cru { -class Buffer final { - friend void swap(Buffer& left, Buffer& right) noexcept; +class CRU_BASE_API Buffer final { + friend CRU_BASE_API void swap(Buffer& left, Buffer& right) noexcept; public: Buffer(); @@ -157,5 +157,5 @@ class Buffer final { Index used_end_; }; -void swap(Buffer& left, Buffer& right) noexcept; +CRU_BASE_API void swap(Buffer& left, Buffer& right) noexcept; } // namespace cru diff --git a/include/cru/ui/render/LayoutRenderObject.h b/include/cru/ui/render/LayoutRenderObject.h index 4010ae7c..5cb70680 100644 --- a/include/cru/ui/render/LayoutRenderObject.h +++ b/include/cru/ui/render/LayoutRenderObject.h @@ -60,7 +60,7 @@ class LayoutRenderObject : public RenderObject { } void ClearChildren() { - for (auto child : children_) { + for (const auto& child : children_) { auto render_object = child.render_object; if (render_object) { render_object->SetParent(nullptr); |
