From e206dc1cf625f28149c19eb4dfcbf495ef0efbb4 Mon Sep 17 00:00:00 2001 From: HampusM Date: Fri, 18 Feb 2022 19:31:03 +0100 Subject: refactor: improve options of all kinds --- src/engine/bounds.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/engine/bounds.cpp') diff --git a/src/engine/bounds.cpp b/src/engine/bounds.cpp index 782fd02..aa54439 100644 --- a/src/engine/bounds.cpp +++ b/src/engine/bounds.cpp @@ -1,6 +1,9 @@ #include "bounds.hpp" -Bounds::Bounds(BoundsOpts opts) : _width(opts.width), _height(opts.height) {} +Bounds::Bounds(const BoundsOptions &options) + : _width(options.width), _height(options.height) +{ +} unsigned int Bounds::width() const { -- cgit v1.2.3-18-g5258