diff options
author | Noel Grandin <noel@peralex.com> | 2014-05-19 10:02:29 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-05-20 11:17:22 +0200 |
commit | 8d54796bf152499ecbe61788be64c9035f725dfa (patch) | |
tree | 9516219cf8e60bdd46597e522ca4e9fde9b8f407 /writerfilter | |
parent | e4740dbecfce958c2c707d8cc92e6dbe52f4b71b (diff) |
enhance pass-by-ref plugin to detect large arguments
Detect arguments larger than 64 chars passed by value.
Change-Id: I9b0ea9ccb99d115984a26eab67c9cf6afd5f6cae
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'writerfilter')
-rw-r--r-- | writerfilter/source/rtftok/rtfvalue.cxx | 4 | ||||
-rw-r--r-- | writerfilter/source/rtftok/rtfvalue.hxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/writerfilter/source/rtftok/rtfvalue.cxx b/writerfilter/source/rtftok/rtfvalue.cxx index 2dbad33eed52..5d038828a031 100644 --- a/writerfilter/source/rtftok/rtfvalue.cxx +++ b/writerfilter/source/rtftok/rtfvalue.cxx @@ -21,7 +21,7 @@ namespace rtftok RTFValue::RTFValue(int nValue, const OUString& sValue, RTFSprms rAttributes, RTFSprms rSprms, uno::Reference<drawing::XShape> xShape, uno::Reference<io::XInputStream> xStream, uno::Reference<embed::XEmbeddedObject> xObject, bool bForceString, - RTFShape aShape) + const RTFShape& aShape) : m_nValue(nValue), m_sValue(sValue), m_xShape(xShape), @@ -138,7 +138,7 @@ RTFValue::RTFValue(uno::Reference<embed::XEmbeddedObject> xObject) m_pShape.reset(new RTFShape()); } -RTFValue::RTFValue(RTFShape aShape) +RTFValue::RTFValue(const RTFShape& aShape) : m_nValue(), m_sValue(), m_xShape(), diff --git a/writerfilter/source/rtftok/rtfvalue.hxx b/writerfilter/source/rtftok/rtfvalue.hxx index 210cbb5a629d..5a6d20464940 100644 --- a/writerfilter/source/rtftok/rtfvalue.hxx +++ b/writerfilter/source/rtftok/rtfvalue.hxx @@ -28,7 +28,7 @@ public: typedef boost::shared_ptr<RTFValue> Pointer_t; RTFValue(int nValue, const OUString& sValue, RTFSprms rAttributes, RTFSprms rSprms, css::uno::Reference<css::drawing::XShape> rShape, css::uno::Reference<css::io::XInputStream> rStream, css::uno::Reference<css::embed::XEmbeddedObject> rObject, bool bForceString, - RTFShape aShape); + const RTFShape& aShape); RTFValue(); RTFValue(int nValue); RTFValue(const OUString& sValue, bool bForce = false); @@ -37,7 +37,7 @@ public: RTFValue(css::uno::Reference<css::drawing::XShape> rShape); RTFValue(css::uno::Reference<css::io::XInputStream> rStream); RTFValue(css::uno::Reference<css::embed::XEmbeddedObject> rObject); - RTFValue(RTFShape aShape); + RTFValue(const RTFShape& aShape); virtual ~RTFValue(); void setString(const OUString& sValue); virtual int getInt() const SAL_OVERRIDE; |