summaryrefslogtreecommitdiff
path: root/fpdfsdk/javascript/Icon.h
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2017-02-23 13:07:36 -0800
committerChromium commit bot <commit-bot@chromium.org>2017-02-23 22:29:03 +0000
commit40e0a819100b6b2cf63070c1a91393cf42820c69 (patch)
tree6d5bfd7359378fcacacc51f28ee1d0f8bd6d6804 /fpdfsdk/javascript/Icon.h
parent90b7326a13555795d7292268e83ae4933fd038f5 (diff)
downloadpdfium-40e0a819100b6b2cf63070c1a91393cf42820c69.tar.xz
Remove unused Icon::m_pIconStreamchromium/3022
It is set, and passed around, but never operated upon. This removes another unowned ptr from JS back to C++ objects. Change-Id: I2a7eede050c6d844924e3c74395e7672ebb0213e Reviewed-on: https://pdfium-review.googlesource.com/2829 Commit-Queue: Tom Sepez <tsepez@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/javascript/Icon.h')
-rw-r--r--fpdfsdk/javascript/Icon.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/fpdfsdk/javascript/Icon.h b/fpdfsdk/javascript/Icon.h
index 5a51f20410..5580678fd5 100644
--- a/fpdfsdk/javascript/Icon.h
+++ b/fpdfsdk/javascript/Icon.h
@@ -17,13 +17,10 @@ class Icon : public CJS_EmbedObj {
~Icon() override;
bool name(CJS_Runtime* pRuntime, CJS_PropValue& vp, CFX_WideString& sError);
- void SetStream(CPDF_Stream* pIconStream);
- CPDF_Stream* GetStream();
- void SetIconName(CFX_WideString name);
- CFX_WideString GetIconName();
+ CFX_WideString GetIconName() const { return m_swIconName; }
+ void SetIconName(CFX_WideString name) { m_swIconName = name; }
private:
- CPDF_Stream* m_pIconStream;
CFX_WideString m_swIconName;
};