summaryrefslogtreecommitdiff
path: root/hwpfilter
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-11-03 09:52:08 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-11-06 07:13:42 +0100
commit0d50804e1c0c0ea2a5cd73fa3fa2a9ff0a0e7048 (patch)
treeab861bba797a4610ffd5b482cc8fa4c4d5b59c35 /hwpfilter
parent26e8b589b3f7716a80df7f3a9273e4967d9b0991 (diff)
loplugin:constparams in various(2)
Change-Id: I533a7eb724b15e168a28dc92cd5962a39bc96e7c Reviewed-on: https://gerrit.libreoffice.org/44313 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'hwpfilter')
-rw-r--r--hwpfilter/source/hwpreader.cxx12
-rw-r--r--hwpfilter/source/hwpreader.hxx12
2 files changed, 12 insertions, 12 deletions
diff --git a/hwpfilter/source/hwpreader.cxx b/hwpfilter/source/hwpreader.cxx
index c18fad632ff2..d1005e4cf1ee 100644
--- a/hwpfilter/source/hwpreader.cxx
+++ b/hwpfilter/source/hwpreader.cxx
@@ -1331,7 +1331,7 @@ void HwpReader::makeMasterStyles()
* style:text-underline,style:text-outline,fo:text-shadow,style:text-position
* Support them.
*/
-void HwpReader::parseCharShape(CharShape * cshape)
+void HwpReader::parseCharShape(CharShape const * cshape)
{
HWPFont& hwpfont = hwpfile.GetHWPFont();
@@ -1405,7 +1405,7 @@ void HwpReader::parseCharShape(CharShape * cshape)
* are implemented.
* TODO: Tab Settings => set values of properties only which doesn't have the default value
*/
-void HwpReader::parseParaShape(ParaShape * pshape)
+void HwpReader::parseParaShape(ParaShape const * pshape)
{
if (pshape->left_margin != 0)
@@ -1473,7 +1473,7 @@ void HwpReader::parseParaShape(ParaShape * pshape)
/**
* Make the style of the Paragraph.
*/
-void HwpReader::makePStyle(ParaShape * pshape)
+void HwpReader::makePStyle(ParaShape const * pshape)
{
int nscount = pshape->tabs[MAXTABS -1].type;
padd("style:name", sXML_CDATA,
@@ -1804,7 +1804,7 @@ void HwpReader::makePageStyle()
}
}
-void HwpReader::makeColumns(ColumnDef *coldef)
+void HwpReader::makeColumns(ColumnDef const *coldef)
{
if( !coldef ) return;
padd("fo:column-count", sXML_CDATA, ascii(Int2Str(coldef->ncols, "%d", buf)));
@@ -1854,7 +1854,7 @@ void HwpReader::makeColumns(ColumnDef *coldef)
rendEl("style:columns");
}
-void HwpReader::makeTStyle(CharShape * cshape)
+void HwpReader::makeTStyle(CharShape const * cshape)
{
padd("style:name", sXML_CDATA,
ascii(Int2Str(cshape->index, "T%d", buf)));
@@ -4666,7 +4666,7 @@ void HwpReader::makeFootnote(Footnote * hbox)
/**
* page/footnote/endnote/picture/table/formula number
*/
-void HwpReader::makeAutoNum(AutoNum * hbox)
+void HwpReader::makeAutoNum(AutoNum const * hbox)
{
switch (hbox->type)
{
diff --git a/hwpfilter/source/hwpreader.hxx b/hwpfilter/source/hwpreader.hxx
index 8acc30879cc0..c23316df620a 100644
--- a/hwpfilter/source/hwpreader.hxx
+++ b/hwpfilter/source/hwpreader.hxx
@@ -130,22 +130,22 @@ private:
void makeLine();
void makeHidden(Hidden *hbox);
void makeFootnote(Footnote *hbox);
- void makeAutoNum(AutoNum *hbox);
+ void makeAutoNum(AutoNum const *hbox);
void makeShowPageNum();
void makeMailMerge(MailMerge *hbox);
void makeOutline(Outline const *hbox);
/* --------- Styles Parsing ------------ */
void makePageStyle();
- void makeColumns(ColumnDef *);
- void makeTStyle(CharShape *);
- void makePStyle(ParaShape *);
+ void makeColumns(ColumnDef const *);
+ void makeTStyle(CharShape const *);
+ void makePStyle(ParaShape const *);
void makeFStyle(FBoxStyle *);
void makeCaptionStyle(FBoxStyle *);
void makeDrawStyle(HWPDrawingObject *,FBoxStyle *);
void makeTableStyle(Table *);
- void parseCharShape(CharShape *);
- void parseParaShape(ParaShape *);
+ void parseCharShape(CharShape const *);
+ void parseParaShape(ParaShape const *);
static char* getTStyleName(int, char *);
static char* getPStyleName(int, char *);
};