From 61355e51b855157f62ff814184f0ea3c5b68f1d7 Mon Sep 17 00:00:00 2001 From: Sebastian Spaeth Date: Thu, 14 Oct 2010 08:30:41 +0200 Subject: Add vim/emacs modelines to all source files Fixes #fdo30794 Based on bin/add-modelines script (originally posted in mail 1286706307.1871.1399280959@webmail.messagingengine.com) Signed-off-by: Sebastian Spaeth --- starmath/source/eqnolefilehdr.hxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'starmath/source/eqnolefilehdr.hxx') diff --git a/starmath/source/eqnolefilehdr.hxx b/starmath/source/eqnolefilehdr.hxx index 330f5767384c..cdc592d8ea0c 100644 --- a/starmath/source/eqnolefilehdr.hxx +++ b/starmath/source/eqnolefilehdr.hxx @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -61,3 +62,4 @@ sal_Bool GetMathTypeVersion( SotStorage* pStor, sal_uInt8 &nVersion ); #endif +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit From f54c659e240896bc65f3f6f37fc993813630d8d3 Mon Sep 17 00:00:00 2001 From: Norbert Thiebaud Date: Thu, 28 Apr 2011 21:53:29 -0500 Subject: avoid object double include in starmath --- starmath/source/eqnolefilehdr.hxx | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) (limited to 'starmath/source/eqnolefilehdr.hxx') 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 ); -- cgit