summaryrefslogtreecommitdiff
path: root/hwpfilter
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-11-24 10:09:57 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-11-24 10:35:44 +0000
commit70b09d932225027d531c9a95317320174f8ad687 (patch)
treeec36c7d4927721c59d22830385517770e820d98b /hwpfilter
parentcbc5dc14d6bb795a9c2b54d624b10770a2a95a00 (diff)
cppcheck: noExplicitConstructor
Change-Id: I1934441858baeeb41a46f694dbcef2d846b308b7
Diffstat (limited to 'hwpfilter')
-rw-r--r--hwpfilter/source/hbox.h6
-rw-r--r--hwpfilter/source/hiodev.h2
-rw-r--r--hwpfilter/source/htags.h4
-rw-r--r--hwpfilter/source/hwpfile.h2
-rw-r--r--hwpfilter/source/list.hxx4
-rw-r--r--hwpfilter/source/nodes.h2
6 files changed, 10 insertions, 10 deletions
diff --git a/hwpfilter/source/hbox.h b/hwpfilter/source/hbox.h
index 921e63105e24..8e5dcaa2ccbe 100644
--- a/hwpfilter/source/hbox.h
+++ b/hwpfilter/source/hbox.h
@@ -47,7 +47,7 @@ struct HBox
* Construct a HBox object with parameter hch.
* @param hch 16bit character being able to have Korean character.
*/
- HBox( hchar hch );
+ explicit HBox( hchar hch );
virtual ~HBox();
/**
* @returns The Size of HBox object
@@ -75,7 +75,7 @@ struct SkipData: public HBox
hchar dummy;
char *data_block;
- SkipData(hchar);
+ explicit SkipData(hchar);
virtual ~SkipData();
virtual bool Read(HWPFile &hwpf) override;
};
@@ -321,7 +321,7 @@ struct FBox: public HBox
FBox *prev, *next;
- FBox( hchar hch );
+ explicit FBox( hchar hch );
virtual ~FBox();
};
diff --git a/hwpfilter/source/hiodev.h b/hwpfilter/source/hiodev.h
index ebc94b2b8b7c..0a43d44763d6 100644
--- a/hwpfilter/source/hiodev.h
+++ b/hwpfilter/source/hiodev.h
@@ -80,7 +80,7 @@ class HStreamIODev : public HIODev
std::unique_ptr<HStream> _stream;
gz_stream *_gzfp;
public:
- HStreamIODev(HStream* stream);
+ explicit HStreamIODev(HStream* stream);
virtual ~HStreamIODev();
/**
* Check whether the stream is available
diff --git a/hwpfilter/source/htags.h b/hwpfilter/source/htags.h
index 9000d56068c0..303b84461c9e 100644
--- a/hwpfilter/source/htags.h
+++ b/hwpfilter/source/htags.h
@@ -31,7 +31,7 @@ struct EmPicture
char type[16];
uchar *data;
- EmPicture(size_t size);
+ explicit EmPicture(size_t size);
~EmPicture(void);
bool Read(HWPFile& hwpf);
@@ -60,7 +60,7 @@ struct OlePicture
#else
char *pis;
#endif
- OlePicture(int tsize);
+ explicit OlePicture(int tsize);
~OlePicture(void);
bool Read(HWPFile& hwpf);
diff --git a/hwpfilter/source/hwpfile.h b/hwpfilter/source/hwpfile.h
index 07cf84792428..ea500e10bba7 100644
--- a/hwpfilter/source/hwpfile.h
+++ b/hwpfilter/source/hwpfile.h
@@ -70,7 +70,7 @@ struct ColumnInfo{
int start_page;
bool bIsSet;
ColumnDef *coldef;
- ColumnInfo(int num){
+ explicit ColumnInfo(int num){
start_page = num;
bIsSet = false;
coldef = NULL;
diff --git a/hwpfilter/source/list.hxx b/hwpfilter/source/list.hxx
index a605acad0dae..99dcc7f0ab21 100644
--- a/hwpfilter/source/list.hxx
+++ b/hwpfilter/source/list.hxx
@@ -43,7 +43,7 @@ class LinkedList
public:
/// construct list with one element (pItem) or no element (pItem == NULL)
- LinkedList( T* pItem = 0 );
+ explicit LinkedList( T* pItem = 0 );
~LinkedList();
};
@@ -59,7 +59,7 @@ class LinkedListIterator
public:
/// construct list with single element
- LinkedListIterator( LinkedList<T>* pList = 0 );
+ explicit LinkedListIterator( LinkedList<T>* pList = 0 );
~LinkedListIterator();
// bug-compatible with original LinkedList.h/cxx: Ignore parameter!
diff --git a/hwpfilter/source/nodes.h b/hwpfilter/source/nodes.h
index 9f1d2ebc02eb..7d93f104b0ca 100644
--- a/hwpfilter/source/nodes.h
+++ b/hwpfilter/source/nodes.h
@@ -62,7 +62,7 @@ enum IDLIST {
class Node{
public:
- Node(int _id) : id(_id)
+ explicit Node(int _id) : id(_id)
{
value = NULL;
child = NULL;