summaryrefslogtreecommitdiff
path: root/lotuswordpro
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-09-12 11:32:53 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-09-12 11:09:43 +0000
commit774d2a94d31c14fb24c07a5c85220e5ef528ad20 (patch)
tree36c8b4ddc4572f55d208bc022802cbf3d18b71bc /lotuswordpro
parent69ce52fbf26fab9239562d2bfd407db67cfb6ec8 (diff)
loplugin:constantparam in extensions..lotuswordpro
Change-Id: Ifb30d5d53536045638d872761626a1b60fa52dad Reviewed-on: https://gerrit.libreoffice.org/28831 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'lotuswordpro')
-rw-r--r--lotuswordpro/source/filter/bencont.cxx9
-rw-r--r--lotuswordpro/source/filter/bento.hxx2
-rw-r--r--lotuswordpro/source/filter/explode.cxx6
-rw-r--r--lotuswordpro/source/filter/explode.hxx2
4 files changed, 7 insertions, 12 deletions
diff --git a/lotuswordpro/source/filter/bencont.cxx b/lotuswordpro/source/filter/bencont.cxx
index b126b4803911..506b2ed06d72 100644
--- a/lotuswordpro/source/filter/bencont.cxx
+++ b/lotuswordpro/source/filter/bencont.cxx
@@ -219,10 +219,9 @@ BenError LtcBenContainer::SeekFromEnd(long Offset)
/**
* Find the next value stream with property name
* @param string of property name
-* @param current value stream pointer with the property name
* @return next value stream pointer with the property names
*/
-LtcUtBenValueStream * LtcBenContainer::FindNextValueStreamWithPropertyName(const char * sPropertyName, LtcUtBenValueStream * pCurrentValueStream)
+LtcUtBenValueStream * LtcBenContainer::FindNextValueStreamWithPropertyName(const char * sPropertyName)
{
CBenPropertyName * pPropertyName(nullptr);
RegisterPropertyName(sPropertyName, &pPropertyName); // Get property name object
@@ -232,10 +231,6 @@ LtcUtBenValueStream * LtcBenContainer::FindNextValueStreamWithPropertyName(const
// Get current object
CBenObject * pObj = nullptr;
- if (pCurrentValueStream != nullptr)
- {
- pObj = pCurrentValueStream->GetValue()->GetProperty()->GetBenObject();
- }
pObj =FindNextObjectWithProperty(pObj, pPropertyName->GetID()); // Get next object with same property name
if (nullptr == pObj)
@@ -258,7 +253,7 @@ LtcUtBenValueStream * LtcBenContainer::FindNextValueStreamWithPropertyName(const
*/
LtcUtBenValueStream * LtcBenContainer::FindValueStreamWithPropertyName(const char * sPropertyName)
{
- return FindNextValueStreamWithPropertyName(sPropertyName, nullptr);
+ return FindNextValueStreamWithPropertyName(sPropertyName);
}
/**
* <description>
diff --git a/lotuswordpro/source/filter/bento.hxx b/lotuswordpro/source/filter/bento.hxx
index 1530f034d4ac..ef157e947307 100644
--- a/lotuswordpro/source/filter/bento.hxx
+++ b/lotuswordpro/source/filter/bento.hxx
@@ -221,7 +221,7 @@ public: // Internal methods
CUtList& GetObjects() { return cObjects; }
CUtList& GetNamedObjects() { return cNamedObjects; }
- LtcUtBenValueStream * FindNextValueStreamWithPropertyName(const char * sPropertyName, LtcUtBenValueStream * pCurrentValueStream);
+ LtcUtBenValueStream * FindNextValueStreamWithPropertyName(const char * sPropertyName);
LtcUtBenValueStream * FindValueStreamWithPropertyName(const char * sPropertyName);
void CreateGraphicStream(SvStream * &pStream, const char *pObjectName);
diff --git a/lotuswordpro/source/filter/explode.cxx b/lotuswordpro/source/filter/explode.cxx
index 87f40494c006..0d8515a967c7 100644
--- a/lotuswordpro/source/filter/explode.cxx
+++ b/lotuswordpro/source/filter/explode.cxx
@@ -451,11 +451,11 @@ void Decompression::fillArray()
}
}
-HuffmanTreeNode::HuffmanTreeNode(sal_uInt32 nValue , HuffmanTreeNode * pLeft , HuffmanTreeNode * pRight )
+HuffmanTreeNode::HuffmanTreeNode(sal_uInt32 nValue )
{
value = nValue;
- left = pLeft;
- right = pRight;
+ left = nullptr;
+ right = nullptr;
}
HuffmanTreeNode::~HuffmanTreeNode()
{
diff --git a/lotuswordpro/source/filter/explode.hxx b/lotuswordpro/source/filter/explode.hxx
index 04c4cf5b455f..27fc4277da88 100644
--- a/lotuswordpro/source/filter/explode.hxx
+++ b/lotuswordpro/source/filter/explode.hxx
@@ -67,7 +67,7 @@ public:
HuffmanTreeNode * right;
sal_uInt32 value;
- HuffmanTreeNode(sal_uInt32 value = 0xffffffff, HuffmanTreeNode * left = nullptr, HuffmanTreeNode * right = nullptr) ;
+ HuffmanTreeNode(sal_uInt32 value = 0xffffffff) ;
~HuffmanTreeNode() ;
HuffmanTreeNode * InsertNode(sal_uInt32 nValue, const sal_Char * pInCode);
HuffmanTreeNode * QueryNode(const sal_Char *pCode);