summaryrefslogtreecommitdiffstats
path: root/gfx
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-15 04:23:52 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-15 04:23:52 +0000
commitfbbcb12a0fc8455d48b0030287c347569a035d29 (patch)
tree2baba4d5821231b9326abf1c2b43a7748b5d3ee6 /gfx
parenta0f3e087b823699a0c823276b2228e3f5738d5e4 (diff)
downloadchromium_src-fbbcb12a0fc8455d48b0030287c347569a035d29.zip
chromium_src-fbbcb12a0fc8455d48b0030287c347569a035d29.tar.gz
chromium_src-fbbcb12a0fc8455d48b0030287c347569a035d29.tar.bz2
Fix some style issues in Rect I noticed.
TEST=none BUG=none Review URL: http://codereview.chromium.org/2987005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52440 0039d316-1c4b-4281-b951-d872f2087c98
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; }