summaryrefslogtreecommitdiff
path: root/include/svl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-10-25 16:43:05 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-10-26 11:43:40 +0200
commitb9fd0d1c42686fed09ec8781780a8ffc61198bcf (patch)
tree953d0ab655786b13d3314c9bffed66be019948eb /include/svl
parentd9b6f4fd38da9f875b78f6ff365bcb16fb2c8e8b (diff)
loplugin:constmethod in svl
Change-Id: If92869e19c413e11f1f299a97f96b9637aaba65d Reviewed-on: https://gerrit.libreoffice.org/43864 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svl')
-rw-r--r--include/svl/filenotation.hxx2
-rw-r--r--include/svl/itemiter.hxx2
-rw-r--r--include/svl/lockfilecommon.hxx2
-rw-r--r--include/svl/ownlist.hxx2
-rw-r--r--include/svl/sharecontrolfile.hxx2
-rw-r--r--include/svl/style.hxx2
-rw-r--r--include/svl/zforlist.hxx8
-rw-r--r--include/svl/zformat.hxx10
8 files changed, 15 insertions, 15 deletions
diff --git a/include/svl/filenotation.hxx b/include/svl/filenotation.hxx
index ff89fa462d4a..e5cf1c78a320 100644
--- a/include/svl/filenotation.hxx
+++ b/include/svl/filenotation.hxx
@@ -42,7 +42,7 @@ namespace svt
OFileNotation( const OUString& _rUrlOrPath );
OFileNotation( const OUString& _rUrlOrPath, NOTATION _eInputNotation );
- OUString get(NOTATION _eOutputNotation);
+ OUString get(NOTATION _eOutputNotation) const;
private:
SVL_DLLPRIVATE void construct( const OUString& _rUrlOrPath );
diff --git a/include/svl/itemiter.hxx b/include/svl/itemiter.hxx
index 30b6bd13d00d..aba136d2aa85 100644
--- a/include/svl/itemiter.hxx
+++ b/include/svl/itemiter.hxx
@@ -43,7 +43,7 @@ public:
m_nCurrent = m_nStart;
return m_rSet.m_nCount ? *(m_rSet.m_pItems + m_nCurrent) : nullptr;
}
- const SfxPoolItem* GetCurItem()
+ const SfxPoolItem* GetCurItem() const
{
return m_rSet.m_nCount ? *(m_rSet.m_pItems + m_nCurrent) : nullptr;
}
diff --git a/include/svl/lockfilecommon.hxx b/include/svl/lockfilecommon.hxx
index ce6c435ceef2..ee4674840029 100644
--- a/include/svl/lockfilecommon.hxx
+++ b/include/svl/lockfilecommon.hxx
@@ -49,7 +49,7 @@ protected:
::osl::Mutex m_aMutex;
OUString m_aURL;
- INetURLObject ResolveLinks( const INetURLObject& aDocURL );
+ INetURLObject ResolveLinks( const INetURLObject& aDocURL ) const;
public:
LockFileCommon( const OUString& aOrigURL, const OUString& aPrefix );
diff --git a/include/svl/ownlist.hxx b/include/svl/ownlist.hxx
index 6a29f993f62d..620b48078ac7 100644
--- a/include/svl/ownlist.hxx
+++ b/include/svl/ownlist.hxx
@@ -64,7 +64,7 @@ public:
void Append( const OUString & rCommand, const OUString & rArg );
void FillFromSequence( const css::uno::Sequence < css::beans::PropertyValue >& );
- void FillSequence( css::uno::Sequence < css::beans::PropertyValue >& );
+ void FillSequence( css::uno::Sequence < css::beans::PropertyValue >& ) const;
size_t size() const { return aCommandList.size(); }
diff --git a/include/svl/sharecontrolfile.hxx b/include/svl/sharecontrolfile.hxx
index ad899ac133ba..60f478651342 100644
--- a/include/svl/sharecontrolfile.hxx
+++ b/include/svl/sharecontrolfile.hxx
@@ -45,7 +45,7 @@ class SVL_DLLPUBLIC ShareControlFile : public LockFileCommon
std::vector< LockFileEntry > m_aUsersData;
void Close();
- bool IsValid()
+ bool IsValid() const
{
return ( m_xStream.is() && m_xInputStream.is() && m_xOutputStream.is() && m_xSeekable.is() && m_xTruncate.is() );
}
diff --git a/include/svl/style.hxx b/include/svl/style.hxx
index 1695c8fd3483..b23c4fee6e26 100644
--- a/include/svl/style.hxx
+++ b/include/svl/style.hxx
@@ -193,7 +193,7 @@ protected:
private:
- SVL_DLLPRIVATE bool IsTrivialSearch();
+ SVL_DLLPRIVATE bool IsTrivialSearch() const;
SfxStyleSheetBase* pAktStyle;
sal_uInt16 nAktPosition;
diff --git a/include/svl/zforlist.hxx b/include/svl/zforlist.hxx
index 20fb1d453652..0d82b6d6d4b4 100644
--- a/include/svl/zforlist.hxx
+++ b/include/svl/zforlist.hxx
@@ -589,11 +589,11 @@ public:
LanguageType eLnge, SvNumberformat* pFormat );
/// Return the reference date
- const Date& GetNullDate();
+ const Date& GetNullDate() const;
/// Return the standard decimal precision
- sal_uInt16 GetStandardPrec();
+ sal_uInt16 GetStandardPrec() const;
/// Return whether zero suppression is switched on
- bool GetNoZero();
+ bool GetNoZero() const;
/** Get the type of a format (or css::util::NumberFormat::UNDEFINED if no entry),
but with css::util::NumberFormat::DEFINED masked out */
short GetType(sal_uInt32 nFIndex);
@@ -902,7 +902,7 @@ private:
DECL_DLLPRIVATE_STATIC_LINK( SvNumberFormatter, CurrencyChangeLink, LinkParamNone*, void );
// return position of a special character
- sal_Int32 ImpPosToken ( const OUStringBuffer & sFormat, sal_Unicode token, sal_Int32 nStartPos = 0 );
+ sal_Int32 ImpPosToken ( const OUStringBuffer & sFormat, sal_Unicode token, sal_Int32 nStartPos = 0 ) const;
// Substitute a format during GetFormatEntry(), i.e. system formats.
SvNumberformat* ImpSubstituteEntry( SvNumberformat* pFormat, sal_uInt32 * o_pRealKey = nullptr );
diff --git a/include/svl/zformat.hxx b/include/svl/zformat.hxx
index a5ceeeac2e64..9f6305e807b3 100644
--- a/include/svl/zformat.hxx
+++ b/include/svl/zformat.hxx
@@ -468,7 +468,7 @@ public:
#endif
/// Whether it's a (YY)YY-M(M)-D(D) format.
- bool IsIso8601( sal_uInt16 nNumFor )
+ bool IsIso8601( sal_uInt16 nNumFor ) const
{
if ( nNumFor < 4 )
return ImpIsIso8601( NumFor[nNumFor]);
@@ -535,7 +535,7 @@ private:
// divide in substrings and color conditions
SVL_DLLPRIVATE short ImpNextSymbol( OUStringBuffer& rString,
sal_Int32& nPos,
- OUString& sSymbol );
+ OUString& sSymbol ) const;
// read string until ']' and strip blanks (after condition)
SVL_DLLPRIVATE static sal_Int32 ImpGetNumber( OUStringBuffer& rString,
@@ -585,11 +585,11 @@ private:
const LocaleType & aTmpLocale );
// standard number output
- SVL_DLLPRIVATE void ImpGetOutputStandard( double& fNumber, OUString& OutString );
- SVL_DLLPRIVATE void ImpGetOutputStandard( double& fNumber, OUStringBuffer& OutString );
+ SVL_DLLPRIVATE void ImpGetOutputStandard( double& fNumber, OUString& OutString ) const;
+ SVL_DLLPRIVATE void ImpGetOutputStandard( double& fNumber, OUStringBuffer& OutString ) const;
SVL_DLLPRIVATE void ImpGetOutputStdToPrecision( double& rNumber, OUString& rOutString, sal_uInt16 nPrecision ) const;
// numbers in input line
- SVL_DLLPRIVATE void ImpGetOutputInputLine( double fNumber, OUString& OutString );
+ SVL_DLLPRIVATE void ImpGetOutputInputLine( double fNumber, OUString& OutString ) const;
// check subcondition
// OP undefined => -1