summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2011-10-06 23:56:23 +0200
committerJan Holesovsky <kendy@suse.cz>2011-10-07 00:21:07 +0200
commitf1eda55a0670cd571d676b46d2ac19fe86d51a3f (patch)
tree9338813c6ee7358b9722084880c51f6586602fdd /sw
parentd550bc3f450dd2d3aa33398eb31bc1163a181c43 (diff)
Add method data() to ww::bytes.
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/ww8/types.hxx6
-rw-r--r--sw/source/filter/ww8/ww8par.hxx2
2 files changed, 6 insertions, 2 deletions
diff --git a/sw/source/filter/ww8/types.hxx b/sw/source/filter/ww8/types.hxx
index 5b991fc45ccc..012b87b21dfd 100644
--- a/sw/source/filter/ww8/types.hxx
+++ b/sw/source/filter/ww8/types.hxx
@@ -33,7 +33,11 @@
namespace ww
{
- typedef std::vector<sal_uInt8> bytes;
+ class bytes : public std::vector<sal_uInt8>
+ {
+ public:
+ const sal_uInt8* data() const { return &front(); }
+ };
enum WordVersion {eWW2 = 2, eWW6 = 6, eWW7 = 7, eWW8 = 8};
inline bool IsSevenMinus(WordVersion eVer) { return eVer <= eWW7; }
diff --git a/sw/source/filter/ww8/ww8par.hxx b/sw/source/filter/ww8/ww8par.hxx
index 1961630c5a15..555f4e6232a6 100644
--- a/sw/source/filter/ww8/ww8par.hxx
+++ b/sw/source/filter/ww8/ww8par.hxx
@@ -214,7 +214,7 @@ private:
//sprms which are attached to this numbering level
bool ReadLVL(SwNumFmt& rNumFmt, SfxItemSet*& rpItemSet, sal_uInt16 nLevelStyle,
bool bSetStartNo, std::deque<bool> &rNotReallyThere, sal_uInt16 nLevel,
- std::vector<sal_uInt8> &rParaSprms);
+ ww::bytes &rParaSprms);
// Zeichenattribute aus GrpprlChpx
typedef SfxItemSet* WW8aISet[nMaxLevel];