diff options
author | Noel Grandin <noel@peralex.com> | 2016-06-29 09:09:05 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-06-30 07:01:41 +0000 |
commit | fbd23182ee1804fd87a13d79a71e231549767408 (patch) | |
tree | ba2e1c8af7bcfc71908ae6a1858315e6547b3c73 | |
parent | f160d8c879b7184b2a41f2310a09c0432c14379a (diff) |
loplugin:unusedfields
Change-Id: If06fffa8db050df0f9c1c7da6163575bf522382e
Reviewed-on: https://gerrit.libreoffice.org/26754
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
-rw-r--r-- | idl/inc/hash.hxx | 8 | ||||
-rw-r--r-- | idl/source/cmptools/hash.cxx | 2 | ||||
-rw-r--r-- | include/editeng/numitem.hxx | 10 | ||||
-rw-r--r-- | include/svx/svdcrtv.hxx | 1 | ||||
-rw-r--r-- | include/svx/svdoashp.hxx | 1 | ||||
-rw-r--r-- | sd/inc/anminfo.hxx | 1 | ||||
-rw-r--r-- | sd/source/core/anminfo.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/dlg/TemplateScanner.cxx | 3 | ||||
-rw-r--r-- | sd/source/ui/inc/TemplateScanner.hxx | 5 | ||||
-rw-r--r-- | sdext/source/presenter/PresenterToolBar.cxx | 7 | ||||
-rw-r--r-- | svx/source/svdraw/svdoashp.cxx | 1 | ||||
-rw-r--r-- | vcl/opengl/PackedTextureAtlas.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/text/XMLPropertyBackpatcher.cxx | 1 | ||||
-rw-r--r-- | xmloff/source/text/XMLPropertyBackpatcher.hxx | 3 |
14 files changed, 10 insertions, 37 deletions
diff --git a/idl/inc/hash.hxx b/idl/inc/hash.hxx index a2e923c88af8..6546ca79eb35 100644 --- a/idl/inc/hash.hxx +++ b/idl/inc/hash.hxx @@ -52,19 +52,16 @@ class SvStringHashEntry : public SvRefBase { friend class SvStringHashTable; OString aName; - sal_uInt32 nHashId; sal_uLong nValue; bool bHasId; public: SvStringHashEntry() - : nHashId(0) - , nValue(0) + : nValue(0) , bHasId(false) { } - SvStringHashEntry( const OString& rName, sal_uInt32 nIdx ) + SvStringHashEntry( const OString& rName ) : aName(rName) - , nHashId(nIdx) , nValue(0) , bHasId(true) { @@ -80,7 +77,6 @@ public: SvStringHashEntry & operator = ( const SvStringHashEntry & rRef ) { SvRefBase::operator=( rRef ); aName = rRef.aName; - nHashId = rRef.nHashId; nValue = rRef.nValue; bHasId = rRef.bHasId; return *this; diff --git a/idl/source/cmptools/hash.cxx b/idl/source/cmptools/hash.cxx index fc63730b0a94..a03f4cd60316 100644 --- a/idl/source/cmptools/hash.cxx +++ b/idl/source/cmptools/hash.cxx @@ -167,7 +167,7 @@ bool SvStringHashTable::Insert( const OString& rName, sal_uInt32 * pIndex ) return false; if( !IsEntry( *pIndex ) ) - pEntries[ *pIndex ] = SvStringHashEntry( rName, *pIndex ); + pEntries[ *pIndex ] = SvStringHashEntry( rName ); return true; } diff --git a/include/editeng/numitem.hxx b/include/editeng/numitem.hxx index 2d67dd1b27e4..13ffac063128 100644 --- a/include/editeng/numitem.hxx +++ b/include/editeng/numitem.hxx @@ -315,11 +315,10 @@ public: class SvxNodeNum { sal_uInt16 nLevelVal[ SVX_MAX_NUM ]; // Numbers of all levels - sal_uInt16 nSetValue; // predetermined number - sal_uInt8 nMyLevel; // Current Level + sal_uInt8 nMyLevel; // Current Level public: - explicit inline SvxNodeNum( sal_uInt16 nSetVal = USHRT_MAX ); + explicit inline SvxNodeNum(); inline SvxNodeNum& operator=( const SvxNodeNum& rCpy ); sal_uInt8 GetLevel() const { return nMyLevel; } @@ -329,8 +328,8 @@ public: sal_uInt16* GetLevelVal() { return nLevelVal; } }; -SvxNodeNum::SvxNodeNum( sal_uInt16 nSetVal ) - : nSetValue( nSetVal ), nMyLevel( 0 ) +SvxNodeNum::SvxNodeNum() + : nMyLevel( 0 ) { memset( nLevelVal, 0, sizeof( nLevelVal ) ); } @@ -339,7 +338,6 @@ inline SvxNodeNum& SvxNodeNum::operator=( const SvxNodeNum& rCpy ) { if ( &rCpy != this) { - nSetValue = rCpy.nSetValue; nMyLevel = rCpy.nMyLevel; memcpy( nLevelVal, rCpy.nLevelVal, sizeof( nLevelVal ) ); diff --git a/include/svx/svdcrtv.hxx b/include/svx/svdcrtv.hxx index 83fc4070220c..33fa675cf111 100644 --- a/include/svx/svdcrtv.hxx +++ b/include/svx/svdcrtv.hxx @@ -51,7 +51,6 @@ protected: sal_uInt32 nAktInvent; // set the current ones sal_uInt16 nAktIdent; // Obj for re-creating - bool bAutoTextEdit : 1; // Textedit after we start the creation of a text frame bool b1stPointAsCenter : 1; bool bUseIncompatiblePathCreateInterface : 1; diff --git a/include/svx/svdoashp.hxx b/include/svx/svdoashp.hxx index b31d9bfe92ee..4ff71004d2bb 100644 --- a/include/svx/svdoashp.hxx +++ b/include/svx/svdoashp.hxx @@ -145,7 +145,6 @@ protected: // and object sizes virtual void AdaptTextMinSize() override; - OUString aName; Size m_aSuggestedTextFrameSize; public: diff --git a/sd/inc/anminfo.hxx b/sd/inc/anminfo.hxx index db2aeb38553b..96cb5a0a8860 100644 --- a/sd/inc/anminfo.hxx +++ b/sd/inc/anminfo.hxx @@ -57,7 +57,6 @@ public: bool mbSecondSoundOn; ///< for object fading. bool mbSecondPlayFull; ///< for object fading. sal_uInt16 mnVerb; ///< for OLE object - sal_uLong mnPresOrder; SdrObject& mrObject; void SetBookmark( const OUString& rBookmark ); diff --git a/sd/source/core/anminfo.cxx b/sd/source/core/anminfo.cxx index b62b0ee46368..f0b5f10bd7f4 100644 --- a/sd/source/core/anminfo.cxx +++ b/sd/source/core/anminfo.cxx @@ -52,7 +52,6 @@ SdAnimationInfo::SdAnimationInfo(SdrObject& rObject) mbSecondSoundOn (false), mbSecondPlayFull (false), mnVerb (0), - mnPresOrder (TREELIST_APPEND), mrObject (rObject) { maBlueScreen = RGB_Color(COL_LIGHTMAGENTA); @@ -82,7 +81,6 @@ SdAnimationInfo::SdAnimationInfo(const SdAnimationInfo& rAnmInfo, SdrObject& rOb mbSecondSoundOn (rAnmInfo.mbSecondSoundOn), mbSecondPlayFull (rAnmInfo.mbSecondPlayFull), mnVerb (rAnmInfo.mnVerb), - mnPresOrder (TREELIST_APPEND), mrObject (rObject) { // can not be copied diff --git a/sd/source/ui/dlg/TemplateScanner.cxx b/sd/source/ui/dlg/TemplateScanner.cxx index 33dcc56e877b..965089423b12 100644 --- a/sd/source/ui/dlg/TemplateScanner.cxx +++ b/sd/source/ui/dlg/TemplateScanner.cxx @@ -357,7 +357,6 @@ TemplateScanner::State TemplateScanner::ScanFolder() FolderDescriptor aDescriptor (*mpFolderDescriptors->begin()); mpFolderDescriptors->erase(mpFolderDescriptors->begin()); - OUString sTitle (aDescriptor.msTitle); OUString aId (aDescriptor.msContentIdentifier); maFolderContent = ::ucbhelper::Content (aId, aDescriptor.mxFolderEnvironment, comphelper::getProcessComponentContext()); @@ -365,7 +364,7 @@ TemplateScanner::State TemplateScanner::ScanFolder() { // Scan the folder and insert it into the list of template // folders. - mpTemplateDirectory = new TemplateDir (sTitle); + mpTemplateDirectory = new TemplateDir; mpTemplateDirectory->EnableSorting(mbEntrySortingEnabled); // Continue with scanning all entries in the folder. eNextState = INITIALIZE_ENTRY_SCAN; diff --git a/sd/source/ui/inc/TemplateScanner.hxx b/sd/source/ui/inc/TemplateScanner.hxx index eed8d9445bec..3af88714267e 100644 --- a/sd/source/ui/inc/TemplateScanner.hxx +++ b/sd/source/ui/inc/TemplateScanner.hxx @@ -72,11 +72,10 @@ private: class TemplateDir { public: - TemplateDir (const OUString& rsRegion ) - : msRegion(rsRegion), maEntries(), + TemplateDir() + : maEntries(), mbSortingEnabled(false), mpEntryCompare(nullptr) {} - OUString msRegion; ::std::vector<TemplateEntry*> maEntries; void EnableSorting(bool bSortingEnabled = true); diff --git a/sdext/source/presenter/PresenterToolBar.cxx b/sdext/source/presenter/PresenterToolBar.cxx index a791386f0fda..2f298b28450a 100644 --- a/sdext/source/presenter/PresenterToolBar.cxx +++ b/sdext/source/presenter/PresenterToolBar.cxx @@ -263,7 +263,6 @@ namespace { class TimeFormatter { public: - TimeFormatter(); static OUString FormatTime (const oslDateTime& rTime); }; @@ -319,7 +318,6 @@ namespace { const SharedElementMode& rpDisabledMode) override; virtual void restart() override; private: - TimeFormatter maTimeFormatter; TimeValue maStartTimeValue; PresentationTimeLabel (const ::rtl::Reference<PresenterToolBar>& rpToolBar); virtual ~PresentationTimeLabel(); @@ -1792,10 +1790,6 @@ geometry::RealRectangle2D Text::GetBoundingBox (const Reference<rendering::XCanv //===== TimeFormatter ========================================================= -TimeFormatter::TimeFormatter() -{ -} - OUString TimeFormatter::FormatTime (const oslDateTime& rTime) { OUStringBuffer sText; @@ -1897,7 +1891,6 @@ PresentationTimeLabel::~PresentationTimeLabel() PresentationTimeLabel::PresentationTimeLabel ( const ::rtl::Reference<PresenterToolBar>& rpToolBar) : TimeLabel(rpToolBar), - maTimeFormatter(), maStartTimeValue() { restart(); diff --git a/svx/source/svdraw/svdoashp.cxx b/svx/source/svdraw/svdoashp.cxx index b23ff7e81f5e..7b3d6a94a193 100644 --- a/svx/source/svdraw/svdoashp.cxx +++ b/svx/source/svdraw/svdoashp.cxx @@ -2817,7 +2817,6 @@ SdrObjCustomShape& SdrObjCustomShape::operator=(const SdrObjCustomShape& rObj) if( this == &rObj ) return *this; SdrTextObj::operator=( rObj ); - aName = rObj.aName; fObjectRotation = rObj.fObjectRotation; InvalidateRenderGeometry(); return *this; diff --git a/vcl/opengl/PackedTextureAtlas.cxx b/vcl/opengl/PackedTextureAtlas.cxx index 38475b1b3bdb..46fdf3b5a36b 100644 --- a/vcl/opengl/PackedTextureAtlas.cxx +++ b/vcl/opengl/PackedTextureAtlas.cxx @@ -111,12 +111,10 @@ struct PackedTexture { std::unique_ptr<ImplOpenGLTexture> mpTexture; std::unique_ptr<Node> mpRootNode; - int mnDeallocatedArea; PackedTexture(int nWidth, int nHeight) : mpTexture(new ImplOpenGLTexture(nWidth, nHeight, true)) , mpRootNode(new Node(nWidth, nHeight)) - , mnDeallocatedArea(0) {} }; diff --git a/xmloff/source/text/XMLPropertyBackpatcher.cxx b/xmloff/source/text/XMLPropertyBackpatcher.cxx index fbc86fdc5602..08c2c17a19ea 100644 --- a/xmloff/source/text/XMLPropertyBackpatcher.cxx +++ b/xmloff/source/text/XMLPropertyBackpatcher.cxx @@ -34,7 +34,6 @@ template<class A> XMLPropertyBackpatcher<A>::XMLPropertyBackpatcher( const OUString& sPropName) : sPropertyName(sPropName) -, sPreservePropertyName() { } diff --git a/xmloff/source/text/XMLPropertyBackpatcher.hxx b/xmloff/source/text/XMLPropertyBackpatcher.hxx index 74e2c9b33d18..af31ec5190db 100644 --- a/xmloff/source/text/XMLPropertyBackpatcher.hxx +++ b/xmloff/source/text/XMLPropertyBackpatcher.hxx @@ -61,9 +61,6 @@ class XMLPropertyBackpatcher /// name of property that gets set or backpatched OUString sPropertyName; - /// name of the property to preserve - OUString sPreservePropertyName; - /// backpatch list type typedef ::std::vector< css::uno::Reference<css::beans::XPropertySet> > BackpatchListType; |