diff options
author | dpapad@chromium.org <dpapad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-24 23:37:45 +0000 |
---|---|---|
committer | dpapad@chromium.org <dpapad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-24 23:37:45 +0000 |
commit | 96fddd8b9f17a3545e210301ae5430e34ae4aa9a (patch) | |
tree | 798c024a05a476a5fe56874d74a77ca254518c39 /printing/emf_win.cc | |
parent | 6a5a58b5be45b26be7760cd1ae8fad6f2d2d2689 (diff) | |
download | chromium_src-96fddd8b9f17a3545e210301ae5430e34ae4aa9a.zip chromium_src-96fddd8b9f17a3545e210301ae5430e34ae4aa9a.tar.gz chromium_src-96fddd8b9f17a3545e210301ae5430e34ae4aa9a.tar.bz2 |
Removing GetData helper from NativeMetafile interface and also renaming it to GetDataAsVector to avoid overloading.
Also making it private since it is only used internally.
BUG=NONE
TEST=NONE
Review URL: http://codereview.chromium.org/6713081
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79343 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/emf_win.cc')
-rw-r--r-- | printing/emf_win.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/printing/emf_win.cc b/printing/emf_win.cc index c411a40..4dda7af 100644 --- a/printing/emf_win.cc +++ b/printing/emf_win.cc @@ -156,7 +156,7 @@ bool Emf::GetData(void* buffer, uint32 size) const { return size2 == size && size2 != 0; } -bool Emf::GetData(std::vector<uint8>* buffer) const { +bool Emf::GetDataAsVector(std::vector<uint8>* buffer) const { uint32 size = GetDataSize(); if (!size) return false; @@ -176,7 +176,7 @@ bool Emf::SaveTo(const FilePath& file_path) const { bool success = false; std::vector<uint8> buffer; - if (GetData(&buffer)) { + if (GetDataAsVector(&buffer)) { DWORD written = 0; if (WriteFile(file, &*buffer.begin(), static_cast<DWORD>(buffer.size()), &written, NULL) && |