summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--svtools/source/inc/poolio.hxx18
1 files changed, 16 insertions, 2 deletions
diff --git a/svtools/source/inc/poolio.hxx b/svtools/source/inc/poolio.hxx
index a52eceea4360..37ab4fc33b84 100644
--- a/svtools/source/inc/poolio.hxx
+++ b/svtools/source/inc/poolio.hxx
@@ -4,9 +4,9 @@
*
* $RCSfile: poolio.hxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: hr $ $Date: 2007-06-27 21:37:41 $
+ * last change: $Author: obo $ $Date: 2008-01-04 14:57:27 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -143,6 +143,20 @@ struct SfxItemPool_Impl
} \
}
+#define CHECK_FILEFORMAT_RELEASE( rStream, nTag, pPointer ) \
+ { USHORT nFileTag; \
+ rStream >> nFileTag; \
+ if ( nTag != nFileTag ) \
+ { \
+ DBG_ERROR( #nTag ); /*! s.u. */ \
+ /*! error-code setzen und auswerten! */ \
+ (rStream).SetError(SVSTREAM_FILEFORMAT_ERROR); \
+ pImp->bStreaming = FALSE; \
+ delete pPointer; \
+ return rStream; \
+ } \
+ }
+
#define CHECK_FILEFORMAT2( rStream, nTag1, nTag2 ) \
{ USHORT nFileTag; \
rStream >> nFileTag; \