summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-05-16 10:11:04 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-05-18 10:03:44 +0000
commit2c8fe2e737b84ecd3dbac36a4fe6bd061bbd3bae (patch)
tree66ba7ff0b95cf5ceeda5e53294a71c6786460eb3 /svl
parent4e59eecc077d27dd9762e7c890b2aaf92a212959 (diff)
update unusedmethods plugin to deal with constructors
and fix the operator< implementations in some of the other plugins too. Change-Id: Ie5631e0cdc8d2a994ad2af2533cdb558a6cfc035 Reviewed-on: https://gerrit.libreoffice.org/25057 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svl')
-rw-r--r--svl/source/items/ctypeitm.cxx6
-rw-r--r--svl/source/items/nranges.cxx9
-rw-r--r--svl/source/items/rngitem.cxx12
-rw-r--r--svl/source/items/szitem.cxx5
-rw-r--r--svl/source/svdde/ddecli.cxx22
5 files changed, 0 insertions, 54 deletions
diff --git a/svl/source/items/ctypeitm.cxx b/svl/source/items/ctypeitm.cxx
index 646ed8b2465b..82b779bf4384 100644
--- a/svl/source/items/ctypeitm.cxx
+++ b/svl/source/items/ctypeitm.cxx
@@ -35,12 +35,6 @@
#define CONTENT_TYPE_NOT_INIT ( (INetContentType)-1 )
-CntContentTypeItem::CntContentTypeItem()
-: CntUnencodedStringItem(),
- _eType( CONTENT_TYPE_NOT_INIT )
-{
-}
-
CntContentTypeItem::CntContentTypeItem( sal_uInt16 which, const OUString& rType )
: CntUnencodedStringItem( which, rType ),
_eType( CONTENT_TYPE_NOT_INIT )
diff --git a/svl/source/items/nranges.cxx b/svl/source/items/nranges.cxx
index da3e21768358..b445cb7f3272 100644
--- a/svl/source/items/nranges.cxx
+++ b/svl/source/items/nranges.cxx
@@ -351,13 +351,4 @@ copy_rest:
return *this;
}
-/**
- * Determines the number of USHORTs in the set described by the ranges
- * of USHORTs in '*this'.
- */
-sal_uInt16 SfxUShortRanges::Count() const
-{
- return Capacity_Impl( _pRanges );
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svl/source/items/rngitem.cxx b/svl/source/items/rngitem.cxx
index 6fcd15738c21..7a0e2d1f69ad 100644
--- a/svl/source/items/rngitem.cxx
+++ b/svl/source/items/rngitem.cxx
@@ -31,13 +31,6 @@ static inline sal_uInt16 Count_Impl(const sal_uInt16 * pRanges)
}
-SfxRangeItem::SfxRangeItem()
-{
- nFrom = 0;
- nTo = 0;
-}
-
-
SfxRangeItem::SfxRangeItem( sal_uInt16 which, sal_uInt16 from, sal_uInt16 to ):
SfxPoolItem( which ),
nFrom( from ),
@@ -98,11 +91,6 @@ SvStream& SfxRangeItem::Store(SvStream &rStream, sal_uInt16) const
return rStream;
}
-SfxUShortRangesItem::SfxUShortRangesItem()
-: _pRanges(nullptr)
-{
-}
-
SfxUShortRangesItem::SfxUShortRangesItem( sal_uInt16 nWID, SvStream &rStream )
: SfxPoolItem( nWID )
{
diff --git a/svl/source/items/szitem.cxx b/svl/source/items/szitem.cxx
index 2239919691f8..ee4b77e25aeb 100644
--- a/svl/source/items/szitem.cxx
+++ b/svl/source/items/szitem.cxx
@@ -28,11 +28,6 @@
#include <svl/memberid.hrc>
-SfxSizeItem::SfxSizeItem()
-{
-}
-
-
SfxSizeItem::SfxSizeItem( sal_uInt16 nW, const Size& rVal ) :
SfxPoolItem( nW ),
aVal( rVal )
diff --git a/svl/source/svdde/ddecli.cxx b/svl/source/svdde/ddecli.cxx
index fd09c85af57f..09c6e9444104 100644
--- a/svl/source/svdde/ddecli.cxx
+++ b/svl/source/svdde/ddecli.cxx
@@ -371,34 +371,12 @@ DdeRequest::DdeRequest( DdeConnection& d, const OUString& i, long n )
nType = XTYP_REQUEST;
}
-DdeWarmLink::DdeWarmLink( DdeConnection& d, const OUString& i, long n )
- : DdeLink( d, i, n )
-{
- nType = XTYP_ADVSTART | XTYPF_NODATA;
-}
-
DdeHotLink::DdeHotLink( DdeConnection& d, const OUString& i, long n )
: DdeLink( d, i, n )
{
nType = XTYP_ADVSTART;
}
-DdePoke::DdePoke( DdeConnection& d, const OUString& i, const char* p,
- long l, SotClipboardFormatId f, long n )
- : DdeTransaction( d, i, n )
-{
- aDdeData = DdeData( p, l, f );
- nType = XTYP_POKE;
-}
-
-DdePoke::DdePoke( DdeConnection& d, const OUString& i, const OUString& rData,
- long n )
- : DdeTransaction( d, i, n )
-{
- aDdeData = DdeData( (void*) rData.getStr(), sizeof(sal_Unicode) * (rData.getLength()), SotClipboardFormatId::STRING );
- nType = XTYP_POKE;
-}
-
DdePoke::DdePoke( DdeConnection& d, const OUString& i, const DdeData& rData,
long n )
: DdeTransaction( d, i, n )