summaryrefslogtreecommitdiff
path: root/starmath/source
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2011-04-28 21:53:29 -0500
committerNorbert Thiebaud <nthiebaud@gmail.com>2011-04-28 21:53:29 -0500
commitf54c659e240896bc65f3f6f37fc993813630d8d3 (patch)
tree33032d5ee20125d9ca0bee2d2c0b9d993928920c /starmath/source
parent7438c388e31ac611af903dc98006b084f565911e (diff)
avoid object double include in starmath
Diffstat (limited to 'starmath/source')
-rw-r--r--starmath/source/eqnolefilehdr.cxx24
-rw-r--r--starmath/source/eqnolefilehdr.hxx24
2 files changed, 22 insertions, 26 deletions
diff --git a/starmath/source/eqnolefilehdr.cxx b/starmath/source/eqnolefilehdr.cxx
index 4da274fb2673..3e7fa57c665a 100644
--- a/starmath/source/eqnolefilehdr.cxx
+++ b/starmath/source/eqnolefilehdr.cxx
@@ -33,30 +33,6 @@
//////////////////////////////////////////////////////////////////////
-void EQNOLEFILEHDR::Read(SvStorageStream *pS)
-{
- *pS >> nCBHdr;
- *pS >> nVersion;
- *pS >> nCf;
- *pS >> nCBObject;
- *pS >> nReserved1;
- *pS >> nReserved2;
- *pS >> nReserved3;
- *pS >> nReserved4;
-}
-
-
-void EQNOLEFILEHDR::Write(SvStorageStream *pS)
-{
- *pS << nCBHdr;
- *pS << nVersion;
- *pS << nCf;
- *pS << nCBObject;
- *pS << nReserved1;
- *pS << nReserved2;
- *pS << nReserved3;
- *pS << nReserved4;
-}
sal_Bool GetMathTypeVersion( SotStorage* pStor, sal_uInt8 &nVersion )
diff --git a/starmath/source/eqnolefilehdr.hxx b/starmath/source/eqnolefilehdr.hxx
index cdc592d8ea0c..e19980529ee2 100644
--- a/starmath/source/eqnolefilehdr.hxx
+++ b/starmath/source/eqnolefilehdr.hxx
@@ -54,8 +54,28 @@ public:
sal_uInt32 nReserved3; // not used
sal_uInt32 nReserved4; // not used
- void Read(SvStorageStream *pS);
- void Write(SvStorageStream *pS);
+ inline void Read(SvStorageStream *pS)
+ {
+ *pS >> nCBHdr;
+ *pS >> nVersion;
+ *pS >> nCf;
+ *pS >> nCBObject;
+ *pS >> nReserved1;
+ *pS >> nReserved2;
+ *pS >> nReserved3;
+ *pS >> nReserved4;
+ }
+ inline void Write(SvStorageStream *pS)
+ {
+ *pS << nCBHdr;
+ *pS << nVersion;
+ *pS << nCf;
+ *pS << nCBObject;
+ *pS << nReserved1;
+ *pS << nReserved2;
+ *pS << nReserved3;
+ *pS << nReserved4;
+ }
};
sal_Bool GetMathTypeVersion( SotStorage* pStor, sal_uInt8 &nVersion );