From 763f848ffbd28b22a6c2aa32bf28184d9c17b366 Mon Sep 17 00:00:00 2001 From: "erg@google.com" Date: Fri, 1 Oct 2010 21:23:00 +0000 Subject: FBTF: Another big ctor/dtor cleanup found by automated tools. (Shaves ~2MB off Linux Debug .a files) BUG=none TEST=compiles Review URL: http://codereview.chromium.org/3563004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61237 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/blob/blob_data.cc | 12 ++++++++++++ webkit/blob/blob_data.h | 11 ++++------- 2 files changed, 16 insertions(+), 7 deletions(-) (limited to 'webkit/blob') diff --git a/webkit/blob/blob_data.cc b/webkit/blob/blob_data.cc index 838014b..026408e 100644 --- a/webkit/blob/blob_data.cc +++ b/webkit/blob/blob_data.cc @@ -17,6 +17,16 @@ using WebKit::WebString; namespace webkit_blob { +BlobData::Item::Item() + : type_(TYPE_DATA), + offset_(0), + length_(0) { +} + +BlobData::Item::~Item() {} + +BlobData::BlobData() {} + BlobData::BlobData(const WebBlobData& data) { size_t i = 0; WebBlobData::Item item; @@ -52,4 +62,6 @@ BlobData::BlobData(const WebBlobData& data) { content_disposition_ = data.contentDisposition().utf8().data(); } +BlobData::~BlobData() {} + } // namespace webkit_blob diff --git a/webkit/blob/blob_data.h b/webkit/blob/blob_data.h index ddd0e65..4d84587 100644 --- a/webkit/blob/blob_data.h +++ b/webkit/blob/blob_data.h @@ -29,11 +29,8 @@ class BlobData : public base::RefCounted { class Item { public: - Item() - : type_(TYPE_DATA), - offset_(0), - length_(0) { - } + Item(); + ~Item(); Type type() const { return type_; } const std::string& data() const { return data_; } @@ -90,7 +87,7 @@ class BlobData : public base::RefCounted { base::Time expected_modification_time_; }; - BlobData() { } + BlobData(); explicit BlobData(const WebKit::WebBlobData& data); void AppendData(const std::string& data) { @@ -140,7 +137,7 @@ class BlobData : public base::RefCounted { private: friend class base::RefCounted; - virtual ~BlobData() { } + virtual ~BlobData(); std::string content_type_; std::string content_disposition_; -- cgit v1.1