diff options
author | Rüdiger Timm <rt@openoffice.org> | 2008-03-12 12:13:30 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2008-03-12 12:13:30 +0000 |
commit | f09b3829d76c730b15cbcb1c37d02c4fcaae3ec2 (patch) | |
tree | f9c089376340271093c2145b9351a14f2caf5ac7 /sc/source/core | |
parent | e225813ed45fcec2732ee629b64733630a2ac677 (diff) |
INTEGRATION: CWS impresstables2 (1.6.200); FILE MERGED
2007/07/26 21:40:56 cl 1.6.200.1: #i68103# reworked styles to use refcounting
Diffstat (limited to 'sc/source/core')
-rw-r--r-- | sc/source/core/data/poolhelp.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sc/source/core/data/poolhelp.cxx b/sc/source/core/data/poolhelp.cxx index c3cf7211ab68..c71b4e60a724 100644 --- a/sc/source/core/data/poolhelp.cxx +++ b/sc/source/core/data/poolhelp.cxx @@ -4,9 +4,9 @@ * * $RCSfile: poolhelp.cxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: kz $ $Date: 2006-07-21 11:07:38 $ + * last change: $Author: rt $ $Date: 2008-03-12 13:13:30 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -57,7 +57,7 @@ ScPoolHelper::ScPoolHelper( ScDocument* pSourceDoc ) pDocPool = new ScDocumentPool; pDocPool->FreezeIdRanges(); - pStylePool = new ScStyleSheetPool( *pDocPool, pSourceDoc ); + mxStylePool = new ScStyleSheetPool( *pDocPool, pSourceDoc ); pFormTable = new SvNumberFormatter( pSourceDoc->GetServiceManager(), ScGlobal::eLnge ); pFormTable->SetColorLink( LINK( pSourceDoc, ScDocument, GetUserDefinedColor ) ); @@ -78,14 +78,14 @@ ScPoolHelper::~ScPoolHelper() delete pEnginePool; delete pEditPool; delete pFormTable; - delete pStylePool; + mxStylePool.clear(); delete pDocPool; } void ScPoolHelper::SourceDocumentGone() { // reset all pointers to the source document - pStylePool->SetDocument( NULL ); + mxStylePool->SetDocument( NULL ); pFormTable->SetColorLink( Link() ); } |