diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:16:36 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:31:27 +0100 |
commit | c3dcdeb1d2bccc3785e3675843a5228e183b307f (patch) | |
tree | 857f6a942ba3b535be2baa1b43c5e5bb834aaff5 /hwpfilter/source/drawing.h | |
parent | loplugin:nullptr (automatic rewrite) (diff) | |
download | core-c3dcdeb1d2bccc3785e3675843a5228e183b307f.tar.gz core-c3dcdeb1d2bccc3785e3675843a5228e183b307f.zip |
loplugin:nullptr (automatic rewrite)
Change-Id: Idec97093ca48c14b825c7b87ec050cc99aadc526
Diffstat (limited to 'hwpfilter/source/drawing.h')
-rw-r--r-- | hwpfilter/source/drawing.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/hwpfilter/source/drawing.h b/hwpfilter/source/drawing.h index 2ccaa7311daa..c3fc245207b0 100644 --- a/hwpfilter/source/drawing.h +++ b/hwpfilter/source/drawing.h @@ -85,7 +85,7 @@ HWPDOFuncType HWPDOFuncTbl[] = HWPDOFreeFormFunc, }; -static HMemIODev *hmem = 0; +static HMemIODev *hmem = NULL; static int count = 0; @@ -299,7 +299,7 @@ static bool LoadCommonHeader(HWPDrawingObject * hdo, unsigned short * link_info) hdo->property.contrast = 0; hdo->property.greyscale = 0; } - hdo->property.pPara = 0L; + hdo->property.pPara = NULL; if( ( size > common_size ) && (hdo->property.flag & HWPDO_FLAG_AS_TEXTBOX) ) { @@ -392,7 +392,7 @@ static HWPDrawingObject *LoadDrawingObject(void) return head; } else - return 0; + return NULL; } @@ -423,7 +423,7 @@ static bool LoadDrawingObjectBlock(Picture * pic) return false; pic->picinfo.picdraw.hdo = LoadDrawingObject(); - if (pic->picinfo.picdraw.hdo == 0) + if (pic->picinfo.picdraw.hdo == NULL) return false; return true; } @@ -557,7 +557,7 @@ int cmd, void *argp, int argv) { case OBJFUNC_LOAD: { - hdo->u.freeform.pt = 0; + hdo->u.freeform.pt = NULL; if (ReadSizeField(4) < 4) return OBJRET_FILE_ERROR; if (!hmem->read4b(hdo->u.freeform.npt)) @@ -625,7 +625,7 @@ static void FreeParaList(HWPPara * para) static HWPPara *LoadParaList() { if (!hmem) - return 0; + return NULL; HWPFile *hwpf = GetCurrentDoc(); HIODev *hio = hwpf->SetIODevice(hmem); @@ -635,7 +635,7 @@ static HWPPara *LoadParaList() hwpf->ReadParaList(plist); hwpf->SetIODevice(hio); - return plist.size()? plist.front() : 0; + return plist.size()? plist.front() : NULL; } |