diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2017-09-16 17:01:08 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2017-09-18 22:37:13 +0200 |
commit | e63edbb765169da8d4aca09adfff904891cebe98 (patch) | |
tree | c8068d705ed9d7f3e8a8e08e9419840da11a7f6a /sw/inc | |
parent | 60d15ebbc75c224d016316c7a1a6acf93804d359 (diff) |
tdf#108572 remove connection also if not saved
Change-Id: Iddce37c3ad187f4a5572cb3cc2362535134c28e8
Reviewed-on: https://gerrit.libreoffice.org/42357
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
(cherry picked from commit 29bd193146b40cf90bda5db04b136987f3c7c94d)
Reviewed-on: https://gerrit.libreoffice.org/42369
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/dbmgr.hxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sw/inc/dbmgr.hxx b/sw/inc/dbmgr.hxx index b80f051a4d55..d32e1843f8f8 100644 --- a/sw/inc/dbmgr.hxx +++ b/sw/inc/dbmgr.hxx @@ -261,6 +261,12 @@ friend class SwConnectionDisposedListener_Impl; /// Store last registrations to revoke or commit static std::vector<std::pair<SwDocShell*, OUString>> m_aUncommitedRegistrations; + /// Not used connections. + std::vector<OUString> m_aNotUsedConnections; + + /// Set connection as used. + void SetAsUsed(const OUString& rName); + /// The document that owns this manager. SwDoc* m_pDoc; @@ -487,6 +493,9 @@ public: /// Accept not commited registrations void CommitLastRegistrations(); + + /// Remove not used connections. + void RevokeNotUsedConnections(); }; #endif |