aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/cru/base/Buffer.h6
-rw-r--r--include/cru/ui/render/LayoutRenderObject.h2
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);