diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-29 13:28:44 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-05 12:04:36 +0100 |
commit | 5c7b954935369cbbd22a6f43be63ac7c0ddbbfdc (patch) | |
tree | ac1ee3ab5e080ab65ceef2630d247d9fbe288fbb /include | |
parent | 68d9583db4226a61ba23398928b9416c5d8745c8 (diff) |
loplugin:useuniqueptr in OTable
use rtl::Reference here since these are reference counted data
structures, and we hand out references to me via our API
Change-Id: I8f69dde2db08519cb3d9de20b4ad54462e3ecc98
Reviewed-on: https://gerrit.libreoffice.org/49180
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/connectivity/sdbcx/VTable.hxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/connectivity/sdbcx/VTable.hxx b/include/connectivity/sdbcx/VTable.hxx index ef6ed925cd67..0fe70a36e86a 100644 --- a/include/connectivity/sdbcx/VTable.hxx +++ b/include/connectivity/sdbcx/VTable.hxx @@ -36,6 +36,7 @@ #include <connectivity/CommonTools.hxx> #include <connectivity/dbtoolsdllapi.hxx> #include <com/sun/star/sdbc/XDatabaseMetaData.hpp> +#include <memory> namespace connectivity { @@ -72,9 +73,9 @@ namespace connectivity OUString m_Description; OUString m_Type; - OCollection* m_pKeys; - OCollection* m_pColumns; - OCollection* m_pIndexes; + rtl::Reference<OCollection> m_xKeys; + rtl::Reference<OCollection> m_xColumns; + rtl::Reference<OCollection> m_xIndexes; OCollection* m_pTables; // must hold his own container to notify him when renaming using OTableDescriptor_BASE::rBHelper; |