summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-03 13:10:00 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-03 16:03:34 +0200
commite037381f85413fe6329c54e49ccfcac88dd71048 (patch)
tree78bce79b46f2f5415d70214555ceccc84897dfbf /include
parentca4701fec182d928ab3d39f2183dafecf90e430b (diff)
loplugin:unusedfields in slideshow..svtools
Change-Id: I74d5a4b8cfc4b18267f99648a3112b163c91fd8c Reviewed-on: https://gerrit.libreoffice.org/39474 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/svl/aeitem.hxx4
-rw-r--r--include/svtools/treelistbox.hxx2
2 files changed, 2 insertions, 4 deletions
diff --git a/include/svl/aeitem.hxx b/include/svl/aeitem.hxx
index 10aaa1f30d26..9f99ea85a934 100644
--- a/include/svl/aeitem.hxx
+++ b/include/svl/aeitem.hxx
@@ -24,6 +24,7 @@
#include <svl/eitem.hxx>
#include <cstddef>
+#include <memory>
#include <vector>
class SfxAllEnumValueArr;
@@ -42,8 +43,7 @@ protected:
class SVL_DLLPUBLIC SfxAllEnumItem: public SfxAllEnumItem_Base
{
- SfxAllEnumValueArr* pValues;
- std::vector<sal_uInt16>* pDisabledValues;
+ std::unique_ptr<SfxAllEnumValueArr> pValues;
sal_uInt16 GetPosByValue( sal_uInt16 nValue ) const;
std::size_t GetPosByValue_( sal_uInt16 nValue ) const;
diff --git a/include/svtools/treelistbox.hxx b/include/svtools/treelistbox.hxx
index 5080ebcff5df..3558842ae217 100644
--- a/include/svtools/treelistbox.hxx
+++ b/include/svtools/treelistbox.hxx
@@ -128,7 +128,6 @@ enum class SvLBoxItemType {String, Button, ContextBmp};
class SvLBoxTab
{
long nPos;
- void* pUserData;
public:
SvLBoxTab();
SvLBoxTab( long nPos, SvLBoxTabFlags nFlags );
@@ -137,7 +136,6 @@ public:
SvLBoxTabFlags nFlags;
- void SetUserData( void* pPtr ) { pUserData = pPtr; }
bool IsDynamic() const { return bool(nFlags & SvLBoxTabFlags::DYNAMIC); }
void SetPos( long nNewPos) { nPos = nNewPos; }
long GetPos() const { return nPos; }