summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorXisco Fauli <anistenis@gmail.com>2016-06-06 00:40:56 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-06-09 08:31:18 +0000
commit5e7564dc6917d65d8b5f30534b78c1fe58cf4463 (patch)
tree6f4d7f2827d1a8c571fa9556bd8ad97c398f1029 /include
parentaea4fdb65ace539970e468e77792a377071108b8 (diff)
tdf#89329: use unique_ptr for pImpl in dataaccessdescriptor
Change-Id: I0d04c23b8760ce2e7df9523d99a1fd862e501038 Reviewed-on: https://gerrit.libreoffice.org/25938 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/svx/dataaccessdescriptor.hxx14
1 files changed, 2 insertions, 12 deletions
diff --git a/include/svx/dataaccessdescriptor.hxx b/include/svx/dataaccessdescriptor.hxx
index 80336b974610..fe04960c4bb4 100644
--- a/include/svx/dataaccessdescriptor.hxx
+++ b/include/svx/dataaccessdescriptor.hxx
@@ -23,17 +23,13 @@
#include <com/sun/star/beans/PropertyValue.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <svx/svxdllapi.h>
-
+#include <memory>
namespace svx
{
-
-
class ODADescriptorImpl;
-
//= DataAccessDescriptorProperty
-
enum DataAccessDescriptorProperty
{
daDataSource, /// data source name (string)
@@ -56,7 +52,6 @@ namespace svx
daComponent /// component name (XContent)
};
-
//= ODataAccessDescriptor
/** class encapsulating the css::sdb::DataAccessDescriptor service.
@@ -64,7 +59,7 @@ namespace svx
class SAL_WARN_UNUSED SVX_DLLPUBLIC ODataAccessDescriptor
{
protected:
- ODADescriptorImpl* m_pImpl;
+ std::unique_ptr<ODADescriptorImpl> m_pImpl;
public:
ODataAccessDescriptor();
@@ -112,12 +107,10 @@ namespace svx
*/
css::uno::Any& operator [] ( DataAccessDescriptorProperty _eWhich );
-
/** returns either the data source name if given or the database location
*/
OUString getDataSource() const;
-
/** set the data source name, if it is not file URL
@param _sDataSourceNameOrLocation
the data source name or database location
@@ -125,11 +118,8 @@ namespace svx
void setDataSource(const OUString& _sDataSourceNameOrLocation);
};
-
}
-
#endif // INCLUDED_SVX_DATAACCESSDESCRIPTOR_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */