summaryrefslogtreecommitdiffstats
path: root/gfx
diff options
context:
space:
mode:
Diffstat (limited to 'gfx')
-rw-r--r--gfx/rect.cc7
-rw-r--r--gfx/rect.h6
2 files changed, 3 insertions, 10 deletions
diff --git a/gfx/rect.cc b/gfx/rect.cc
index ea328beb..7ff658f 100644
--- a/gfx/rect.cc
+++ b/gfx/rect.cc
@@ -93,13 +93,6 @@ Rect& Rect::operator=(const GdkRectangle& r) {
}
#endif
-void Rect::set_width(int width) {
- size_.set_width(width);
-}
-void Rect::set_height(int height) {
- size_.set_height(height);
-}
-
void Rect::SetRect(int x, int y, int width, int height) {
origin_.SetPoint(x, y);
set_width(width);
diff --git a/gfx/rect.h b/gfx/rect.h
index f1e43a7..a8406ef 100644
--- a/gfx/rect.h
+++ b/gfx/rect.h
@@ -39,7 +39,7 @@ class Rect {
#elif defined(USE_X11)
explicit Rect(const GdkRectangle& r);
#endif
- Rect(const gfx::Size& size);
+ explicit Rect(const gfx::Size& size);
Rect(const gfx::Point& origin, const gfx::Size& size);
~Rect() {}
@@ -59,10 +59,10 @@ class Rect {
void set_y(int y) { origin_.set_y(y); }
int width() const { return size_.width(); }
- void set_width(int width);
+ void set_width(int width) { size_.set_width(width); }
int height() const { return size_.height(); }
- void set_height(int height);
+ void set_height(int height) { size_.set_height(height); }
const gfx::Point& origin() const { return origin_; }
void set_origin(const gfx::Point& origin) { origin_ = origin; }