summaryrefslogtreecommitdiff
path: root/sw/source/core
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-01-09 12:39:04 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-01-09 12:39:04 +0100
commitfff409cb0c31bbf50e508a3f2e15236533988216 (patch)
tree3153849b5063e85cee3becb6e2d7ae593e1653ea /sw/source/core
parentb1620451b7d6f2230f71c7c2f1896525b85a3dd0 (diff)
Work around -fsanitize=null
(mpLayoutCache may be null, but that was harmless as Write was effectively static) Change-Id: I41b10593c5ae98de92e7b305d9db75d0c4c7b334
Diffstat (limited to 'sw/source/core')
-rw-r--r--sw/source/core/doc/docnew.cxx2
-rw-r--r--sw/source/core/inc/laycache.hxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/doc/docnew.cxx b/sw/source/core/doc/docnew.cxx
index 0f6d0d848abe..54e486a42cd2 100644
--- a/sw/source/core/doc/docnew.cxx
+++ b/sw/source/core/doc/docnew.cxx
@@ -797,7 +797,7 @@ void SwDoc::ReadLayoutCache( SvStream& rStream )
void SwDoc::WriteLayoutCache( SvStream& rStream )
{
- mpLayoutCache->Write( rStream, *this );
+ SwLayoutCache::Write( rStream, *this );
}
IGrammarContact* getGrammarContact( const SwTxtNode& rTxtNode )
diff --git a/sw/source/core/inc/laycache.hxx b/sw/source/core/inc/laycache.hxx
index 5871460c931b..d75e2dd7a28a 100644
--- a/sw/source/core/inc/laycache.hxx
+++ b/sw/source/core/inc/laycache.hxx
@@ -47,7 +47,7 @@ public:
~SwLayoutCache();
void Read( SvStream &rStream );
- void Write( SvStream &rStream, const SwDoc& rDoc );
+ static void Write( SvStream &rStream, const SwDoc& rDoc );
void ClearImpl();
bool IsLocked() const { return nLockCount > 0; }