summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-03-08 13:48:09 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-03-08 18:23:53 +0100
commitc774ad610eb828742a3eea050e5a7571ba3b00be (patch)
tree5563215fe7b481f99efc96017d61ecd5c7a59072 /tools
parent24d0704fa468b300558a3f904ae853fcb7fca312 (diff)
loplugin:constantparam in svtools..unotools
Change-Id: I6e72fbe44dcb65ee5162448e9a72e6437d56b044 Reviewed-on: https://gerrit.libreoffice.org/50948 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'tools')
-rw-r--r--tools/inc/poly.h2
-rw-r--r--tools/source/fsys/urlobj.cxx24
-rw-r--r--tools/source/generic/poly.cxx4
3 files changed, 15 insertions, 15 deletions
diff --git a/tools/inc/poly.h b/tools/inc/poly.h
index 88da80ca1615..2c84bf7459cf 100644
--- a/tools/inc/poly.h
+++ b/tools/inc/poly.h
@@ -33,7 +33,7 @@ public:
public:
ImplPolygon() : mnPoints(0) {}
- ImplPolygon( sal_uInt16 nInitSize, bool bFlags = false );
+ ImplPolygon( sal_uInt16 nInitSize );
ImplPolygon( sal_uInt16 nPoints, const Point* pPtAry, const PolyFlags* pInitFlags );
ImplPolygon( const ImplPolygon& rImplPoly );
ImplPolygon( const tools::Rectangle& rRect );
diff --git a/tools/source/fsys/urlobj.cxx b/tools/source/fsys/urlobj.cxx
index 91326c0a81e0..b8c2db217add 100644
--- a/tools/source/fsys/urlobj.cxx
+++ b/tools/source/fsys/urlobj.cxx
@@ -2054,7 +2054,7 @@ bool INetURLObject::convertIntToExt(OUString const & rTheIntURIRef,
DecodeMechanism eDecodeMechanism,
rtl_TextEncoding eCharset)
{
- OUString aSynExtURIRef(encodeText(rTheIntURIRef, false, PART_VISIBLE,
+ OUString aSynExtURIRef(encodeText(rTheIntURIRef, PART_VISIBLE,
EncodeMechanism::NotCanonical, eCharset, true));
sal_Unicode const * pBegin = aSynExtURIRef.getStr();
sal_Unicode const * pEnd = pBegin + aSynExtURIRef.getLength();
@@ -2077,7 +2077,7 @@ bool INetURLObject::convertExtToInt(OUString const & rTheExtURIRef,
DecodeMechanism eDecodeMechanism,
rtl_TextEncoding eCharset)
{
- OUString aSynIntURIRef(encodeText(rTheExtURIRef, false, PART_VISIBLE,
+ OUString aSynIntURIRef(encodeText(rTheExtURIRef, PART_VISIBLE,
EncodeMechanism::NotCanonical, eCharset, true));
sal_Unicode const * pBegin = aSynIntURIRef.getStr();
sal_Unicode const * pEnd = pBegin + aSynIntURIRef.getLength();
@@ -2257,7 +2257,7 @@ bool INetURLObject::setUser(OUString const & rTheUser,
return false;
}
- OUString aNewUser(encodeText(rTheUser, false/*bOctets*/, PART_USER_PASSWORD,
+ OUString aNewUser(encodeText(rTheUser, PART_USER_PASSWORD,
EncodeMechanism::WasEncoded, eCharset, false));
sal_Int32 nDelta;
if (m_aUser.isPresent())
@@ -2312,7 +2312,7 @@ bool INetURLObject::setPassword(OUString const & rThePassword,
{
if (!getSchemeInfo().m_bPassword)
return false;
- OUString aNewAuth(encodeText(rThePassword, false/*bOctets*/, PART_USER_PASSWORD,
+ OUString aNewAuth(encodeText(rThePassword, PART_USER_PASSWORD,
EncodeMechanism::WasEncoded, eCharset, false));
sal_Int32 nDelta;
if (m_aAuth.isPresent())
@@ -3296,7 +3296,7 @@ bool INetURLObject::insertName(OUString const & rTheName,
OUStringBuffer aNewPath;
aNewPath.append(pPathBegin, pPrefixEnd - pPathBegin);
aNewPath.append('/');
- aNewPath.append(encodeText(rTheName, false/*bOctets*/, PART_PCHAR,
+ aNewPath.append(encodeText(rTheName, PART_PCHAR,
eMechanism, eCharset, true));
if (bInsertSlash) {
aNewPath.append('/');
@@ -3326,7 +3326,7 @@ bool INetURLObject::setQuery(OUString const & rTheQuery,
{
if (!getSchemeInfo().m_bQuery)
return false;
- OUString aNewQuery(encodeText(rTheQuery, false/*bOctets*/, PART_URIC,
+ OUString aNewQuery(encodeText(rTheQuery, PART_URIC,
eMechanism, eCharset, true));
sal_Int32 nDelta;
if (m_aQuery.isPresent())
@@ -3359,7 +3359,7 @@ bool INetURLObject::setFragment(OUString const & rTheFragment,
{
if (HasError())
return false;
- OUString aNewFragment(encodeText(rTheFragment, false/*bOctets*/, PART_URIC,
+ OUString aNewFragment(encodeText(rTheFragment, PART_URIC,
eMechanism, eCharset, true));
if (m_aFragment.isPresent())
m_aFragment.set(m_aAbsURIRef, aNewFragment);
@@ -3733,7 +3733,7 @@ bool INetURLObject::ConcatData(INetProtocol eTheScheme,
if (!rTheUser.isEmpty())
{
m_aUser.set(m_aAbsURIRef,
- encodeText(rTheUser, false, PART_USER_PASSWORD,
+ encodeText(rTheUser, PART_USER_PASSWORD,
EncodeMechanism::WasEncoded, RTL_TEXTENCODING_UTF8, false),
m_aAbsURIRef.getLength());
bUserInfo = true;
@@ -3750,7 +3750,7 @@ bool INetURLObject::ConcatData(INetProtocol eTheScheme,
{
m_aAbsURIRef.append(':');
m_aAuth.set(m_aAbsURIRef,
- encodeText(rThePassword, false, PART_USER_PASSWORD,
+ encodeText(rThePassword, PART_USER_PASSWORD,
EncodeMechanism::WasEncoded, RTL_TEXTENCODING_UTF8, false),
m_aAbsURIRef.getLength());
bUserInfo = true;
@@ -4047,7 +4047,7 @@ bool INetURLObject::setName(OUString const & rTheName)
OUStringBuffer aNewPath;
aNewPath.append(pPathBegin, pSegBegin - pPathBegin);
- aNewPath.append(encodeText(rTheName, false, PART_PCHAR,
+ aNewPath.append(encodeText(rTheName, PART_PCHAR,
EncodeMechanism::WasEncoded, RTL_TEXTENCODING_UTF8, true));
aNewPath.append(p, pPathEnd - p);
@@ -4126,7 +4126,7 @@ bool INetURLObject::setBase(OUString const & rTheBase, sal_Int32 nIndex,
OUStringBuffer aNewPath;
aNewPath.append(pPathBegin, pSegBegin - pPathBegin);
- aNewPath.append(encodeText(rTheBase, false, PART_PCHAR,
+ aNewPath.append(encodeText(rTheBase, PART_PCHAR,
eMechanism, eCharset, true));
aNewPath.append(pExtension, pPathEnd - pExtension);
@@ -4189,7 +4189,7 @@ bool INetURLObject::setExtension(OUString const & rTheExtension,
OUStringBuffer aNewPath;
aNewPath.append(pPathBegin, pExtension - pPathBegin);
aNewPath.append('.');
- aNewPath.append(encodeText(rTheExtension, false, PART_PCHAR,
+ aNewPath.append(encodeText(rTheExtension, PART_PCHAR,
EncodeMechanism::WasEncoded, eCharset, true));
aNewPath.append(p, pPathEnd - p);
diff --git a/tools/source/generic/poly.cxx b/tools/source/generic/poly.cxx
index 387282b4af0e..ce9dabefa37e 100644
--- a/tools/source/generic/poly.cxx
+++ b/tools/source/generic/poly.cxx
@@ -61,9 +61,9 @@ inline double ImplGetParameter( const Point& rCenter, const Point& rPt, double f
return atan2(fWR*sin(fAngle), fHR*cos(fAngle));
}
-ImplPolygon::ImplPolygon( sal_uInt16 nInitSize, bool bFlags )
+ImplPolygon::ImplPolygon( sal_uInt16 nInitSize )
{
- ImplInitSize(nInitSize, bFlags);
+ ImplInitSize(nInitSize, false);
}
ImplPolygon::ImplPolygon( const ImplPolygon& rImpPoly )