summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-01-04 14:26:33 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-01-04 14:29:26 +0100
commit3d0618db2d2e3a994309d3462b206f46edee9df7 (patch)
tree2083753b77aa0c6cd0963c3392605586b37164e0 /sw
parentbde8054e1801ffd2e4bcdb7b4d6ba08f5ceddd6a (diff)
Clean up ~SwXAutoTextEntry
The "DocShell must be cleared..." comment was a leftover from 2613afee051fee15ac78b06f611da493989f893c "INTEGRATION: CWS sw008", pertained to code that had been moved into implFlushDocument. The extra code block and accompanying "Thus, an own block..." comment are just nonsense. Change-Id: I7e60b488c609796d86bedf518218b06c612e494d
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/uno/unoatxt.cxx13
1 files changed, 3 insertions, 10 deletions
diff --git a/sw/source/uibase/uno/unoatxt.cxx b/sw/source/uibase/uno/unoatxt.cxx
index ef41ed8649aa..f50550a2c661 100644
--- a/sw/source/uibase/uno/unoatxt.cxx
+++ b/sw/source/uibase/uno/unoatxt.cxx
@@ -728,17 +728,10 @@ SwXAutoTextEntry::SwXAutoTextEntry(SwGlossaries* pGlss, const OUString& rGroupNa
SwXAutoTextEntry::~SwXAutoTextEntry()
{
- {
- SolarMutexGuard aGuard;
-
- // ensure that any pending modifications are written
- implFlushDocument( true );
+ SolarMutexGuard aGuard;
- //! Bug #96559
- // DocShell must be cleared before mutex is lost.
- // Needs to be done explicitly since xDocSh is a class member.
- // Thus, an own block here, guarded by the SolarMutex
- }
+ // ensure that any pending modifications are written
+ implFlushDocument( true );
}
void SwXAutoTextEntry::implFlushDocument( bool _bCloseDoc )