diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-20 13:22:23 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-21 06:17:24 +0000 |
commit | ece0ff48fafce28691321e17420ebc64b3175594 (patch) | |
tree | e4745fd6634cdca465efbb576923e794897d3326 | |
parent | loplugin:expandablemethodds in sw(part4) (diff) | |
download | core-ece0ff48fafce28691321e17420ebc64b3175594.tar.gz core-ece0ff48fafce28691321e17420ebc64b3175594.zip |
loplugin:expandablemethodds in include/tools..unotools
Change-Id: I5607d4a2a81de1a3ae329acd1e90280a21522f06
Reviewed-on: https://gerrit.libreoffice.org/30097
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | include/tools/b3dtrans.hxx | 2 | ||||
-rw-r--r-- | include/tools/multisel.hxx | 1 | ||||
-rw-r--r-- | include/tools/urlobj.hxx | 4 | ||||
-rw-r--r-- | include/unotools/configitem.hxx | 2 | ||||
-rw-r--r-- | include/unotools/pathoptions.hxx | 1 | ||||
-rw-r--r-- | tools/source/fsys/urlobj.cxx | 8 | ||||
-rw-r--r-- | tools/source/generic/b3dtrans.cxx | 4 | ||||
-rw-r--r-- | tools/source/memtools/multisel.cxx | 2 | ||||
-rw-r--r-- | unotools/source/config/configitem.cxx | 2 | ||||
-rw-r--r-- | unotools/source/config/pathoptions.cxx | 7 |
10 files changed, 6 insertions, 27 deletions
diff --git a/include/tools/b3dtrans.hxx b/include/tools/b3dtrans.hxx index 331c407ee1b2..9787cb76419a 100644 --- a/include/tools/b3dtrans.hxx +++ b/include/tools/b3dtrans.hxx @@ -91,8 +91,6 @@ public: const basegfx::B3DPoint& rVRP = basegfx::B3DPoint(0.0,0.0,1.0), const basegfx::B3DVector& rVPN = basegfx::B3DVector(0.0,0.0,1.0), const basegfx::B3DVector& rVUP = basegfx::B3DVector(0.0,1.0,0.0)); - const basegfx::B3DHomMatrix& GetOrientation() { return maOrientation; } - const basegfx::B3DHomMatrix& GetInvOrientation() { return maInvOrientation; } // Projection void SetProjection(const basegfx::B3DHomMatrix& mProject); diff --git a/include/tools/multisel.hxx b/include/tools/multisel.hxx index 6159145e7ad5..42ae85d73d20 100644 --- a/include/tools/multisel.hxx +++ b/include/tools/multisel.hxx @@ -132,7 +132,6 @@ public: Iterator begin( const std::set< sal_Int32 >* i_pPossibleValues = nullptr ) const; Iterator end( const std::set< sal_Int32 >* i_pPossibleValues = nullptr ) const; - bool isValidInput() const { return mbValidInput; } bool hasValue( sal_Int32 nValue, const std::set< sal_Int32 >* i_pPossibleValues = nullptr ) const; /** diff --git a/include/tools/urlobj.hxx b/include/tools/urlobj.hxx index f5ee05110f18..e36446619646 100644 --- a/include/tools/urlobj.hxx +++ b/include/tools/urlobj.hxx @@ -790,10 +790,6 @@ public: // Data URLs: std::unique_ptr<SvMemoryStream> getData(); - // POP3 and URLs: - - static OUString GetMsgId(rtl_TextEncoding eCharset = RTL_TEXTENCODING_UTF8); - // Coding: enum Part diff --git a/include/unotools/configitem.hxx b/include/unotools/configitem.hxx index 95fd308aae7a..54a57d896f5e 100644 --- a/include/unotools/configitem.hxx +++ b/include/unotools/configitem.hxx @@ -177,8 +177,6 @@ namespace utl void Commit(); - bool IsInValueChange() const { return m_nInValueChange > 0;} - ConfigItemMode GetMode() const { return m_nMode;} }; }//namespace utl diff --git a/include/unotools/pathoptions.hxx b/include/unotools/pathoptions.hxx index 125f487b9526..3f559b4dd93e 100644 --- a/include/unotools/pathoptions.hxx +++ b/include/unotools/pathoptions.hxx @@ -93,7 +93,6 @@ public: const OUString& GetTemplatePath() const; const OUString& GetUserConfigPath() const; const OUString& GetWorkPath() const; - const OUString& GetUIConfigPath() const; const OUString& GetFingerprintPath() const; const OUString& GetClassificationPath() const; diff --git a/tools/source/fsys/urlobj.cxx b/tools/source/fsys/urlobj.cxx index 9061bf19a981..d8dd46ebd74f 100644 --- a/tools/source/fsys/urlobj.cxx +++ b/tools/source/fsys/urlobj.cxx @@ -3651,8 +3651,7 @@ bool INetURLObject::operator ==(INetURLObject const & rObject) const rObject.GetHost(NO_DECODE)) || GetPort() != rObject.GetPort() || HasParam() != rObject.HasParam() - || GetParam() != rObject.GetParam() - || GetMsgId() != INetURLObject::GetMsgId(NO_DECODE)) + || GetParam() != rObject.GetParam()) return false; OUString aPath1(GetURLPath(NO_DECODE)); OUString aPath2(rObject.GetURLPath(NO_DECODE)); @@ -4521,11 +4520,6 @@ OUString INetURLObject::getFSysPath(FSysStyle eStyle, } } -OUString INetURLObject::GetMsgId(rtl_TextEncoding) -{ - return OUString(); -} - // static void INetURLObject::appendUCS4Escape(OUStringBuffer & rTheText, sal_uInt32 nUCS4) diff --git a/tools/source/generic/b3dtrans.cxx b/tools/source/generic/b3dtrans.cxx index 2b8929433540..d12330145fdf 100644 --- a/tools/source/generic/b3dtrans.cxx +++ b/tools/source/generic/b3dtrans.cxx @@ -334,14 +334,14 @@ void B3dTransformationSet::SetViewportRectangle(Rectangle const & rRect, Rectang const basegfx::B3DPoint B3dTransformationSet::WorldToEyeCoor(const basegfx::B3DPoint& rVec) { basegfx::B3DPoint aVec(rVec); - aVec *= GetOrientation(); + aVec *= maOrientation; return aVec; } const basegfx::B3DPoint B3dTransformationSet::EyeToWorldCoor(const basegfx::B3DPoint& rVec) { basegfx::B3DPoint aVec(rVec); - aVec *= GetInvOrientation(); + aVec *= maInvOrientation; return aVec; } diff --git a/tools/source/memtools/multisel.cxx b/tools/source/memtools/multisel.cxx index 47a78d3882ad..bcb23368cb4a 100644 --- a/tools/source/memtools/multisel.cxx +++ b/tools/source/memtools/multisel.cxx @@ -785,7 +785,7 @@ bool StringRangeEnumerator::getRangesFromString( const OUString& i_rPageRange, o_rPageVector.push_back( *it ); } - return aEnum.isValidInput(); + return aEnum.mbValidInput; } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/unotools/source/config/configitem.cxx b/unotools/source/config/configitem.cxx index 348cfc8ba562..f6957e4db24a 100644 --- a/unotools/source/config/configitem.cxx +++ b/unotools/source/config/configitem.cxx @@ -182,7 +182,7 @@ void ConfigItem::CallNotify( const css::uno::Sequence<OUString>& rPropertyNames // the call is forwarded to the virtual Notify() method // it is pure virtual, so all classes deriving from ConfigItem have to decide how they // want to notify listeners - if(!IsInValueChange() || m_bEnableInternalNotification) + if(m_nInValueChange <= 0 || m_bEnableInternalNotification) Notify(rPropertyNames); } diff --git a/unotools/source/config/pathoptions.cxx b/unotools/source/config/pathoptions.cxx index 944eb366dd72..7b64c91a56d6 100644 --- a/unotools/source/config/pathoptions.cxx +++ b/unotools/source/config/pathoptions.cxx @@ -564,11 +564,6 @@ const OUString& SvtPathOptions::GetUserConfigPath() const return pImpl->GetUserConfigPath(); } -const OUString& SvtPathOptions::GetUIConfigPath() const -{ - return pImpl->GetUIConfigPath(); -} - const OUString& SvtPathOptions::GetWorkPath() const { return pImpl->GetWorkPath(); @@ -771,7 +766,7 @@ bool SvtPathOptions::SearchFile( OUString& rIniFile, Paths ePath ) case PATH_TEMP: aPath = GetTempPath(); break; case PATH_TEMPLATE: aPath = GetTemplatePath(); break; case PATH_WORK: aPath = GetWorkPath(); break; - case PATH_UICONFIG: aPath = GetUIConfigPath(); break; + case PATH_UICONFIG: aPath = pImpl->GetUIConfigPath(); break; case PATH_FINGERPRINT: aPath = GetFingerprintPath(); break; case PATH_CLASSIFICATION: aPath = GetClassificationPath(); break; // coverity[dead_error_begin] - following conditions exist to avoid compiler warning |