diff options
author | Noel Grandin <noel@peralex.com> | 2015-10-02 08:37:23 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-10-06 10:17:02 +0200 |
commit | 7e776c0027c19f1bb8e64dd68d3fd9ded0b5d896 (patch) | |
tree | 62bae1461c0388af6f7a8bebbf134e9a86c92153 /sw/source/filter/ww8/WW8Sttbf.hxx | |
parent | d7f2db4b9ce445afdcabf370497bc66db76efbbc (diff) |
loplugin:unusedmethods
Change-Id: I150baadc442e57ee604563bc52965daa9d2e41af
Diffstat (limited to 'sw/source/filter/ww8/WW8Sttbf.hxx')
-rw-r--r-- | sw/source/filter/ww8/WW8Sttbf.hxx | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/sw/source/filter/ww8/WW8Sttbf.hxx b/sw/source/filter/ww8/WW8Sttbf.hxx index 9e05bae2b61b..8c50744be0fc 100644 --- a/sw/source/filter/ww8/WW8Sttbf.hxx +++ b/sw/source/filter/ww8/WW8Sttbf.hxx @@ -30,11 +30,10 @@ namespace ww8 { - typedef boost::shared_array<sal_uInt8> DataArray_t; -class WW8Struct : public ::sw::ExternalData + class WW8Struct : public ::sw::ExternalData { - DataArray_t mp_data; + boost::shared_array<sal_uInt8> mp_data; sal_uInt32 mn_offset; sal_uInt32 mn_size; @@ -51,29 +50,22 @@ class WW8Struct : public ::sw::ExternalData OUString getUString(sal_uInt32 nOffset, sal_uInt32 nCount); }; -typedef ::std::vector<OUString> StringVector_t; template <class T> class WW8Sttb : public WW8Struct { typedef std::shared_ptr< void > ExtraPointer_t; - typedef ::std::vector< ExtraPointer_t > ExtrasVector_t; - bool bDoubleByteCharacters; - StringVector_t m_Strings; - ExtrasVector_t m_Extras; + bool bDoubleByteCharacters; + std::vector<OUString> m_Strings; + std::vector< ExtraPointer_t > m_Extras; public: WW8Sttb(SvStream& rSt, sal_Int32 nPos, sal_uInt32 nSize); virtual ~WW8Sttb(); - StringVector_t & getStrings() + std::vector<OUString> & getStrings() { return m_Strings; } - - const T * getExtra(sal_uInt32 nEntry) const - { - return dynamic_cast<const T *> (m_Extras[nEntry].get()); - } }; template <class T> |