diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-05 21:53:08 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-05 21:53:08 +0000 |
commit | 877d55dcd3e01d1db858f154a1f369e76b2ebaf2 (patch) | |
tree | ee2364ca767826deed3d541603d6c92ca2f0062e /app/gfx | |
parent | aaa47ee9d83f773d37aa4fd4a04097425ce62063 (diff) | |
download | chromium_src-877d55dcd3e01d1db858f154a1f369e76b2ebaf2.zip chromium_src-877d55dcd3e01d1db858f154a1f369e76b2ebaf2.tar.gz chromium_src-877d55dcd3e01d1db858f154a1f369e76b2ebaf2.tar.bz2 |
First patch in making destructors of refcounted objects private.
BUG=26749
Review URL: http://codereview.chromium.org/360042
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31136 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app/gfx')
-rw-r--r-- | app/gfx/font.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/gfx/font.h b/app/gfx/font.h index 80a85ec..6be42ee 100644 --- a/app/gfx/font.h +++ b/app/gfx/font.h @@ -169,7 +169,6 @@ class Font { int ave_char_width, int style, int dlu_base_x); - ~HFontRef(); // Accessors HFONT hfont() const { return hfont_; } @@ -181,6 +180,10 @@ class Font { const std::wstring& font_name() const { return font_name_; } private: + friend class base::RefCounted<HFontRef>; + + ~HFontRef(); + const HFONT hfont_; const int height_; const int baseline_; |