diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-09-04 00:14:59 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-09-06 15:44:58 +0200 |
commit | 3deacd971b843a752ddf456916209f52c9aa992f (patch) | |
tree | d7558c90cd5fc24cc5590b80732c90c7d6be8c01 /sc/inc/patattr.hxx | |
parent | f4b91fc7230124120cf47f75c5197c5bd0c29c7f (diff) |
How the hell did this survive 14 years? Kill it!
No need for a ugly static variable that just causes pain.
Change-Id: I751f58a5dcfdeaa7bfd61f32ccbc13eaaf827632
Diffstat (limited to 'sc/inc/patattr.hxx')
-rw-r--r-- | sc/inc/patattr.hxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/inc/patattr.hxx b/sc/inc/patattr.hxx index 65b189afe103..00d0c98b7730 100644 --- a/sc/inc/patattr.hxx +++ b/sc/inc/patattr.hxx @@ -51,7 +51,6 @@ class SC_DLLPUBLIC ScPatternAttr: public SfxSetItem OUString* pName; ScStyleSheet* pStyle; public: - static ScDocument* pDoc; ScPatternAttr(SfxItemSet* pItemSet, const OUString& rStyleName); ScPatternAttr(SfxItemSet* pItemSet, ScStyleSheet* pStyleSheet = NULL); ScPatternAttr(SfxItemPool* pItemPool); @@ -113,7 +112,7 @@ public: void SetStyleSheet(ScStyleSheet* pNewStyle, bool bClearDirectFormat = true); const ScStyleSheet* GetStyleSheet() const { return pStyle; } const OUString* GetStyleName() const; - void UpdateStyleSheet(); + void UpdateStyleSheet(ScDocument* pDoc); void StyleToName(); bool IsVisible() const; |