diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2017-09-16 17:01:08 +0200 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2017-09-17 11:51:25 +0200 |
commit | 29bd193146b40cf90bda5db04b136987f3c7c94d (patch) | |
tree | 961ee2716531b319da42a4f35c34cb12b16dd509 /sw/inc | |
parent | be69be1dbaf7ca970f1be1af0fdb0ef9821acf6a (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>
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 b0da6613add0..0947bf0e4804 100644 --- a/sw/inc/dbmgr.hxx +++ b/sw/inc/dbmgr.hxx @@ -259,6 +259,12 @@ class SW_DLLPUBLIC SwDBManager /// 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; @@ -485,6 +491,9 @@ public: /// Accept not commited registrations void CommitLastRegistrations(); + + /// Remove not used connections. + void RevokeNotUsedConnections(); }; #endif |