summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-09-09 11:06:42 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-09-09 11:27:23 +0000
commitcb958bb5e0e81d343c91c08a8513006a7bf1d913 (patch)
tree376b6bdfd1e4be0851f5eba9092588cfde451945 /svl
parentf4fcec5f0802620192c31aad24db436ead1b2036 (diff)
loplugin:constantparam in sot..svl
Change-Id: I08db2db3b90725c556e3ba062da5d62d98f6e882 Reviewed-on: https://gerrit.libreoffice.org/28769 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svl')
-rw-r--r--svl/source/items/grabbagitem.cxx4
-rw-r--r--svl/source/misc/strmadpt.cxx15
-rw-r--r--svl/source/numbers/zforlist.cxx3
3 files changed, 7 insertions, 15 deletions
diff --git a/svl/source/items/grabbagitem.cxx b/svl/source/items/grabbagitem.cxx
index c9eb63450bb3..30f583e3f045 100644
--- a/svl/source/items/grabbagitem.cxx
+++ b/svl/source/items/grabbagitem.cxx
@@ -21,11 +21,9 @@ SfxGrabBagItem::SfxGrabBagItem()
{
}
-SfxGrabBagItem::SfxGrabBagItem(sal_uInt16 nWhich, const std::map<OUString, uno::Any>* pMap) :
+SfxGrabBagItem::SfxGrabBagItem(sal_uInt16 nWhich) :
SfxPoolItem(nWhich)
{
- if (pMap)
- m_aMap = *pMap;
}
SfxGrabBagItem::SfxGrabBagItem(const SfxGrabBagItem& rItem) :
diff --git a/svl/source/misc/strmadpt.cxx b/svl/source/misc/strmadpt.cxx
index f8ae73263b02..9b784ca2a958 100644
--- a/svl/source/misc/strmadpt.cxx
+++ b/svl/source/misc/strmadpt.cxx
@@ -70,10 +70,7 @@ private:
void remove(Page * pPage);
public:
- inline SvDataPipe_Impl(sal_uInt32 nThePageSize = 1000,
- sal_uInt32 nTheMinPages = 100,
- sal_uInt32 nTheMaxPages
- = std::numeric_limits< sal_uInt32 >::max());
+ inline SvDataPipe_Impl();
~SvDataPipe_Impl();
@@ -92,9 +89,7 @@ public:
SeekResult setReadPosition(sal_uInt32 nPosition);
};
-SvDataPipe_Impl::SvDataPipe_Impl(sal_uInt32 nThePageSize,
- sal_uInt32 nTheMinPages,
- sal_uInt32 nTheMaxPages)
+SvDataPipe_Impl::SvDataPipe_Impl()
: m_pFirstPage( nullptr )
, m_pReadPage( nullptr )
, m_pWritePage( nullptr )
@@ -102,11 +97,11 @@ SvDataPipe_Impl::SvDataPipe_Impl(sal_uInt32 nThePageSize,
, m_nReadBufferSize( 0 )
, m_nReadBufferFilled( 0 )
, m_nPageSize(std::min< sal_uInt32 >(
- std::max< sal_uInt32 >(nThePageSize, sal_uInt32(1)),
+ 1000,
sal_uInt32(std::numeric_limits< sal_uInt32 >::max()
- sizeof (Page) + 1)))
- , m_nMinPages(std::max< sal_uInt32 >(nTheMinPages, sal_uInt32(1)))
- , m_nMaxPages(std::max< sal_uInt32 >(nTheMaxPages, sal_uInt32(1)))
+ , m_nMinPages(100)
+ , m_nMaxPages(std::numeric_limits< sal_uInt32 >::max())
, m_nPages( 0 )
, m_bEOF( false )
{}
diff --git a/svl/source/numbers/zforlist.cxx b/svl/source/numbers/zforlist.cxx
index 37ac0a3779a9..8574b6ffdc65 100644
--- a/svl/source/numbers/zforlist.cxx
+++ b/svl/source/numbers/zforlist.cxx
@@ -302,8 +302,7 @@ void SvNumberFormatter::ImpConstruct( LanguageType eLang )
pCharClass = new CharClass( m_xContext, maLanguageTag );
xLocaleData.init( m_xContext, maLanguageTag );
xCalendar.init( m_xContext, maLanguageTag.getLocale() );
- xTransliteration.init( m_xContext, eLang,
- css::i18n::TransliterationModules_IGNORE_CASE );
+ xTransliteration.init( m_xContext, eLang );
xNatNum.init( m_xContext );
// cached locale data items